Skip to content

Commit

Permalink
Provide Autoconf syntax for NIST testsuite
Browse files Browse the repository at this point in the history
Using this suite, it is possible to parallelize its evaluation
(for example with `autofonce run -t nist` with v0.7)
  • Loading branch information
lefessan committed Feb 10, 2023
1 parent 608eac1 commit 7b9eadf
Show file tree
Hide file tree
Showing 16 changed files with 10,081 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .autofonce
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ file = "tests/testsuite.at"
path = [ "tests/testsuite.src"]
env = "testsuite"
[testsuites.nist]
file = "tests/cobol85/nist.at"
path = [ "tests/cobol85/nistrun.src"]
file = "tests/nistrun.at"
path = [ "tests/nistrun.src"]
env = "testsuite"

[envs]
Expand Down
32 changes: 27 additions & 5 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ SUBDIRS = cobol85

TESTSUITE = $(srcdir)/testsuite
TESTSUITE_MANUAL = $(srcdir)/testsuite_manual
TESTSUITE_NIST = $(srcdir)/nistrun
dist_check_SCRIPTS = listings-sed.sh

dist_noinst_SCRIPTS = $(TESTSUITE) $(TESTSUITE_MANUAL)
dist_noinst_SCRIPTS = $(TESTSUITE) $(TESTSUITE_MANUAL) $(TESTSUITE_NIST)

testsuite_sources = \
testsuite.src/used_binaries.at \
Expand Down Expand Up @@ -68,10 +69,24 @@ testsuite_sources = \
testsuite_manual_sources = \
testsuite.src/run_manual_screen.at

testsuite_nist_sources = \
nistrun.src/run_DB.at \
nistrun.src/run_IC.at \
nistrun.src/run_IF.at \
nistrun.src/run_IX.at \
nistrun.src/run_NC.at \
nistrun.src/run_OB.at \
nistrun.src/run_RL.at \
nistrun.src/run_RW.at \
nistrun.src/run_SG.at \
nistrun.src/run_SM.at \
nistrun.src/run_SQ.at \
nistrun.src/run_ST.at

EXTRA_DIST = $(srcdir)/package.m4 \
$(srcdir)/testsuite.at $(srcdir)/testsuite_manual.at \
$(srcdir)/testsuite.at $(srcdir)/testsuite_manual.at $(srrdir)/nistrun.at \
$(srcdir)/listings-sed.sh \
$(testsuite_sources) $(testsuite_manual_sources)
$(testsuite_sources) $(testsuite_manual_sources) $(testsuite_nist_sources)

DISTCLEANFILES = atconfig

Expand All @@ -98,6 +113,9 @@ prereq-testsuite: $(TESTSUITE) atlocal
prereq-manual: $(TESTSUITE_MANUAL) atlocal run_prog_manual.sh
@rm -rf testsuite_manual.dir

prereq-nistrun: $(TESTSUITE_NIST) atlocal
@rm -rf nistrun.dir

clean-local:
rm -rf *.dir *.log *.out valgrind

Expand All @@ -107,7 +125,7 @@ checkmanual: prereq-manual

# targets that are only logical targets instead of files
.PHONY: test checkall checkmanual localcheck \
prereq-check prereq-testsuite prereq-manual
prereq-check prereq-testsuite prereq-manual prereq-nistrun

test: atlocal
@echo testing for perl && $(PERL) -v 1>/dev/null \
Expand All @@ -129,9 +147,13 @@ $(srcdir)/package.m4: $(top_srcdir)/configure.ac
} > $(srcdir)/package.m4

$(TESTSUITE): $(testsuite_sources) $(srcdir)/package.m4 $(srcdir)/testsuite.at
autom4te --language=autotest -I $(srcdir) -I $(srcdir)/testsuite.src -o $(srcdir)/testsuite $(srcdir)/testsuite.at
autom4te --language=autotest -I $(srcdir) -I $(srcdir)/testsuite.src -I $(srcdir)/testsuite.src -o $(srcdir)/testsuite $(srcdir)/testsuite.at
chmod +x $(srcdir)/testsuite

$(TESTSUITE_MANUAL): $(testsuite_manual_sources) $(srcdir)/package.m4 $(srcdir)/testsuite_manual.at
autom4te --language=autotest -I $(srcdir) -I $(srcdir)/testsuite.src -o $(srcdir)/testsuite_manual $(srcdir)/testsuite_manual.at
chmod +x $(srcdir)/testsuite_manual

$(TESTSUITE_NIST): $(testsuite_nist_sources) $(srcdir)/package.m4 $(srcdir)/nistrun.at
autom4te --language=autotest -I $(srcdir) -I $(srcdir)/nistrun.src -o $(srcdir)/nistrun $(srcdir)/nistrun.at
chmod +x $(srcdir)/nistrun
Loading

0 comments on commit 7b9eadf

Please sign in to comment.