Makefile.am 1.7 KB
harness_TESTS =					\
	da-dk-g16-dictionary_harness.txt	\
	da-dk-g18-dictionary_harness.txt	\
	da-dk-g26-dictionary_harness.txt	\
	da-dk-g28-dictionary_harness.txt	\
	en-GB-g2_harness.txt			\
	en-gb-g1_harness.txt			\
	en-ueb-g2-dictionary_harness.txt	\
	en-us-g2-dictionary_harness.txt		\
	ethio-g1_harness.txt			\
	ga-g1_harness.txt			\
	ga-g2_harness.txt			\
	fi_harness.txt				\
	hu-hu-comp8_harness.txt			\
	hu-hu-g1-hyph_harness.txt		\
	hu-hu-g1_harness.txt			\
	iu-ca-g1_harness.txt			\
	ko-g2_harness.txt			\
	letterDefTest_harness.txt		\
	nocross_harness.txt			\
	ta-ta-g1_harness.txt			\
	chr-us-g1_harness.txt			\
	nl-BE-g1_harness.txt			\
	en-us-g2-end-emphasis_harness.txt	\
	pl-pl-comp8_harness.txt			\
	fr-bfu-g2_harness.txt			\
	en-ueb-g1_harness.txt			\
	hr-8dots_harness.txt			\
	sr-g1_harness.txt			\
	no_harness.txt				\
	no_harness_g1.txt			\
	no_harness_g2.txt			\
	no_harness_8dot.txt

EXTRA_DIST = $(harness_TESTS)			\
	     runHarness.py

HARNESS_DIR = $(top_srcdir)/tests/harness

harness_ENVIRONMENT =												\
	HARNESS_DIR=$(HARNESS_DIR)										\
	LOUIS_TABLEPATH=$(top_srcdir)/tables,$(top_srcdir)/tests/tables,$(top_srcdir)/tests/tables/moreTables	\
	PYTHONPATH=$(HARNESS_DIR):$(top_builddir)/python:$$PYTHONPATH						\
	LD_LIBRARY_PATH=$(top_builddir)/liblouis/.libs:$$LD_LIBRARY_PATH					\
	PATH=$(top_builddir)/tools:$$PATH

if HAVE_PYTHON
if HAVE_UCS4
runall runAll:
	@$(harness_ENVIRONMENT) $(HARNESS_DIR)/runHarness.py

$(harness_TESTS):
	@$(harness_ENVIRONMENT) $(HARNESS_DIR)/runHarness.py $@
else
runall runAll:
	@echo Please configure with --enable-ucs4
endif
else
runall runAll:
	@echo Python is required to run the harness tests.
endif

check:
	@true

.PHONY: runall runAll $(harness_TESTS)