From ec7f4b47aa74bb62bf25e650bd9e4ba3a5682ecf Mon Sep 17 00:00:00 2001 From: Flammie A Pirinen Date: Thu, 16 May 2024 21:11:33 +0200 Subject: [PATCH] [Template merge] update test harness --- .gitignore | 3 +++ configure.ac | 8 -------- src/fst/morphology/test/Makefile.am | 5 ++++- .../spellcheckers/test/fstbased/desktop/hfst/Makefile.am | 6 ++++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 475a3ae..a7a8470 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,8 @@ *.zhfst *.zip *.zpipe +*.sh.log +*.sh.trs .DS_Store .bundle .~lock.*# @@ -149,5 +151,6 @@ Makefile.in build bygg generated* +test-suite.log .deps .generated diff --git a/configure.ac b/configure.ac index c900c5b..ec107c1 100644 --- a/configure.ac +++ b/configure.ac @@ -34,14 +34,6 @@ AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE( 1.11.6 tar-pax -Wall -Werror foreign -Wno-portability - dnl Automake versions before 1.13 (when the serial-tests option was - dnl still the default) still defined the badly obsolete macro - dnl 'AM_PROG_CC_STDC'. By checking for the non-existence of this macro, - dnl we can now force serial testing for newer automakes (with prettier - dnl output) and at the same time work reasonably with older automakes. - dnl Code based on: - dnl https://lists.gnu.org/archive/html/automake/2013-01/msg00060.html - m4_ifndef([AM_PROG_CC_STDC], [serial-tests]) ) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) diff --git a/src/fst/morphology/test/Makefile.am b/src/fst/morphology/test/Makefile.am index 78497cb..25f7711 100644 --- a/src/fst/morphology/test/Makefile.am +++ b/src/fst/morphology/test/Makefile.am @@ -18,7 +18,10 @@ GENERATION_TESTS_IN=generate-adjective-lemmas.sh.in \ generate-propernoun-lemmas.sh.in \ generate-verb-lemmas.sh.in -GENERATION_TESTS=$(basename $(GENERATION_TESTS_IN)) +GENERATION_TESTS=generate-adjective-lemmas.sh \ + generate-noun-lemmas.sh \ + generate-propernoun-lemmas.sh \ + generate-verb-lemmas.sh if WANT_GENERATION TESTS+=$(GENERATION_TESTS) diff --git a/tools/spellcheckers/test/fstbased/desktop/hfst/Makefile.am b/tools/spellcheckers/test/fstbased/desktop/hfst/Makefile.am index 8704ae6..00833a4 100644 --- a/tools/spellcheckers/test/fstbased/desktop/hfst/Makefile.am +++ b/tools/spellcheckers/test/fstbased/desktop/hfst/Makefile.am @@ -8,12 +8,14 @@ TESTS= # Yaml tests are run from shell scripts - specify them here: YAML_TEST_RUNNERS_IN= #run-acceptor-yaml-testcases.sh.in -YAML_TEST_RUNNERS=$(basename $(YAML_TEST_RUNNERS_IN)) +YAML_TEST_RUNNERS= +#run-acceptor-yaml-testcases.sh # Specify other shell scripts here to make sure they are included in the distro # even though spellers are disabled: OTHER_TEST_RUNNERS_IN=test-zhfst-basic-sugg-speed.sh.in \ accept-all-lemmas.sh.in -OTHER_TEST_RUNNERS=$(basename $(OTHER_TEST_RUNNERS_IN)) +OTHER_TEST_RUNNERS=test-zhfst-basic-sugg-speed.sh \ + accept-all-lemmas.sh # Only test spellers if we build spellers: if WANT_SPELLERS