Directory "test" missing from Exiv2 v0.24 tar/gunzip file
|Status:||Closed||Start date:||29 Nov 2014|
|Assignee:||Robin Mills||% Done:|
This is my first time downloading and installing Exiv2. Since I am running OS X 10.10.1 Yosemite on a MacBook Pro (15-inch, early 2011), I downloaded the Exiv2 v0.24 Source (http://www.exiv2.org/exiv2-0.24.tar.gz) and proceeded to install it based on the instructions "How do I build Exiv2 on the XYZ Platform" (http://dev.exiv2.org/projects/exiv2/wiki/How_do_I_build_Exiv2_on_the_XYZ_platform, accessed November 29, 2014 20:27 CET).
I installed XCode via the Apple Store and MacPorts for Yosemite (https://www.macports.org/install.php) so that I could install the pkg-config. (Forgive me if this wasn't the quickest/easiest route to install pkg-config.)
I was able to build "configure", "install" and "samples" successfully, but the "make tests" command failed with the following error(s):
$ make tests
cd test && /Applications/Xcode.app/Contents/Developer/usr/bin/make test
/bin/sh: line 0: cd: test: No such file or directory
make: *** [tests] Error 1
I can see why the error occurs. The "tests" directory really does not exist in the "exiv2-0.24" directory.
#1 Updated by Robin Mills almost 4 years ago
- Status changed from New to Assigned
Thanks for reporting this. You are quite correct. We don't include the test directory in our distribution bundle. The downloads page http://exiv2.org/download.html states:
Not included in the source distribution are test data and several test drivers. To download these directly from the repository (about 34 MB), change to your local exiv2-0.24/ directory and use the following command:
$ svn export svn://dev.exiv2.org/svn/tags/0.24/test
I will update the "how to build" notes to highlight this. The "how to build" notes have been constructed on the assumption that you're building from trunk. I'll review those pages and clarify the situation about the test directory.
The test directory is not included in our downloads bundle for space efficiency. I believe most folks download and build exiv2 without bothering to run the tests. So, we do not include the 34mb of test images because they are easily downloaded from svn.
I will also consider modifying the command $ make tests to either a) advise the user to download the tests, or b) to download the test files on demand.
I'll update this issue report about this when I have decided how best to deal with this. Thanks for reporting this matter.
#5 Updated by Robin Mills almost 4 years ago
- Status changed from Assigned to Resolved
Fix submitted: r3395. I've updated the documentation on "how to build" and added an output alert to the command make tests
I don't want to get involved in running the command to download the test directory. The command would have to understand which test directory should be downloaded (tags for releases, trunk/branch otherwise). It is simpler (for me) to report the URL of the documentation and leave the user to resolve the situation.
If you disagree with my judgement about invoking svn to download the test directory on demand, I invite you to provide a patch. Remember, this has to work for all build environments including ./configure & cmake (in and out of source) & MSVC. All supported platforms (Linux, Mac, Windows), even when svn is not installed (which is the default on Windows).