Skip to content

Commit 165622c

Browse files
committed
Fix symbolic link in unittest
The unittest could not run when building out of source tree. Fix the symbolic link and make sure that the directory for it exists. Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent cd58a86 commit 165622c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

unittest/Makefile.am

+4-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ EXTRA_apiexample_test_DEPENDENCIES = $(abs_top_builddir)/test/testing/phototest.
9696
EXTRA_apiexample_test_DEPENDENCIES += $(abs_top_builddir)/test/testing/phototest.txt
9797

9898
$(abs_top_builddir)/test/testing/phototest.tif:
99-
ln -s $(top_srcdir)/test/testing/phototest.tif $(top_builddir)/test/testing/phototest.tif
99+
mkdir -p $(top_builddir)/test/testing
100+
ln -s $(TESTING_DIR)/phototest.tif $(top_builddir)/test/testing/phototest.tif
100101

101102
$(abs_top_builddir)/test/testing/phototest.txt:
102-
ln -s $(top_srcdir)/test/testing/phototest.txt $(top_builddir)/test/testing/phototest.txt
103+
mkdir -p $(top_builddir)/test/testing
104+
ln -s $(TESTING_DIR)/phototest.txt $(top_builddir)/test/testing/phototest.txt

0 commit comments

Comments
 (0)