diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2018-03-21 13:10:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-21 13:10:24 -0700 |
commit | b8db52f9bad5b1053810c93f0067de8423349da3 (patch) | |
tree | bd937d795052073645a87032eaf8ecf0be2e11cb /test/regress/regress0/tptp/Makefile.am | |
parent | be2702490d684c100ba6abe76ee156078a9aa621 (diff) |
Move regression tests to single Makefile.am (#1658)
Until now, regression tests were split across tens of different
Makefile.am, which required a lot of code duplication and does not
really seem to be in the spirit of automake. If we want to change the
LOG_COMPILER/LOG_DRIVER for example, we have to change every single
Makefile.am, which is cumbersome (I was able to get something
semi-working by exporting those variables but it didn't seem very
clean). Additionally, it made the output of the regression tests fairly
verbose and split the output across multiple log files. Finally
it also limited parallelism when running the regression tests (this fix lowers
the time it takes to run regression level 1 from 3m to 1m45s on my
machine with 16 threads).
This commit moves all the regression tests into
test/regress/Makefile.tests and changes test/regress/Makefile.am to deal
with this new structure. Finally, it changes how the test summary in
test/Makefile.am is produced: instead of relying on the log files for
the subdirectories, it greps for the test results in the log files of
the individual tests. Not the most elegant solution but we should
probably anyway delegate that task to a Python script at some point.
Diffstat (limited to 'test/regress/regress0/tptp/Makefile.am')
-rw-r--r-- | test/regress/regress0/tptp/Makefile.am | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/test/regress/regress0/tptp/Makefile.am b/test/regress/regress0/tptp/Makefile.am deleted file mode 100644 index a6444c3cb..000000000 --- a/test/regress/regress0/tptp/Makefile.am +++ /dev/null @@ -1,85 +0,0 @@ -# don't override a BINARY imported from a personal.mk -@mk_if@eq ($(BINARY),) -@mk_empty@BINARY = cvc4 -end@mk_if@ - -LOG_COMPILER = @srcdir@/../../run_regression -AM_LOG_FLAGS = $(RUN_REGRESSION_ARGS) @abs_top_builddir@/src/main/$(BINARY)$(EXEEXT) - -if AUTOMAKE_1_11 -# old-style (pre-automake 1.12) test harness -TESTS_ENVIRONMENT = \ - $(LOG_COMPILER) \ - $(AM_LOG_FLAGS) $(LOG_FLAGS) -endif - -MAKEFLAGS = -k - -# escape the `=' in file names -equals = = - -# These are run for all build profiles. -# If a test shouldn't be run in e.g. competition mode, -# put it below in "TESTS +=" -TESTS = \ - tptp_parser.p \ - tptp_parser2.p \ - tptp_parser3.p \ - tptp_parser4.p \ - tptp_parser5.p \ - tptp_parser6.p \ - tptp_parser7.p \ - tptp_parser8.p \ - tptp_parser9.p \ - tptp_parser10.p \ - tff0.p \ - tff0-arith.p \ - ARI086$(equals)1.p \ - DAT001$(equals)1.p \ - KRS018+1.p \ - KRS063+1.p \ - MGT019+2.p \ - MGT041-2.p \ - PUZ131_1.p \ - SYN000+1.p \ - SYN000+2.p \ - SYN000-1.p \ - SYN000-2.p \ - SYN000$(equals)2.p \ - SYN000_1.p \ - SYN000_2.p \ - SYN075-1.p - -# axiom files required for the above tests -TEST_DEPS_DIST = \ - Axioms/BOO004-0.ax \ - Axioms/SYN000_0.ax \ - Axioms/SYN000-0.ax \ - Axioms/SYN000+0.ax - -# these take too long at present -EXTRA_DIST = $(TESTS) \ - $(TEST_DEPS_DIST) \ - BOO027-1.p \ - BOO003-4.p \ - MGT031-1.p \ - NLP114-1.p \ - SYN075+1.p - -#if CVC4_BUILD_PROFILE_COMPETITION -#else -#TESTS += \ -# error.cvc -#endif -# -# and make sure to distribute it -#EXTRA_DIST += \ -# error.cvc - -# synonyms for "check" -.PHONY: regress regress0 test -regress regress0 test: check - -# do nothing in this subdir -.PHONY: regress1 regress2 regress3 regress4 -regress1 regress2 regress3 regress4: |