mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 14:41:36 +08:00
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:
parent
8655524772
commit
5c7600c282
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user