unittest/apiexample_test: Fix test for out-of-tree builds

The test expects to find phototest.tif and phototest.txt
in directory ../testing. Create symbolic links if those
files don't exist there.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2017-09-12 12:53:26 +02:00
parent 8655524772
commit 5c7600c282

View File

@ -59,3 +59,12 @@ tesseracttests_LDADD += -lws2_32
AM_CPPFLAGS += -I$(top_srcdir)/vs2010/port
endif
EXTRA_apiexample_test_DEPENDENCIES = $(abs_top_builddir)/testing/phototest.tif
EXTRA_apiexample_test_DEPENDENCIES += $(abs_top_builddir)/testing/phototest.txt
$(abs_top_builddir)/testing/phototest.tif:
ln -s $(top_srcdir)/testing/phototest.tif $(top_builddir)/testing/phototest.tif
$(abs_top_builddir)/testing/phototest.txt:
ln -s $(top_srcdir)/testing/phototest.txt $(top_builddir)/testing/phototest.txt