Skip to content

Commit

Permalink
unittest/apiexample_test: Fix test for out-of-tree builds
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
stweil committed Sep 13, 2017
1 parent 8655524 commit 5c7600c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions unittest/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5c7600c

Please sign in to comment.