summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-01-27 22:12:33 +0000
committerMorgan Deters <mdeters@gmail.com>2010-01-27 22:12:33 +0000
commit04c345a4debffaa82bd3e360aaf7cb4c6f135ed7 (patch)
tree92b097688966bd5109ff8602dc4b594eb757c306 /test/system
parent7d859f91e4f70e9e3287576394fddc2ce0cf2def (diff)
test framework fixes; bug 13 closed
Diffstat (limited to 'test/system')
-rw-r--r--test/system/Makefile.am31
-rw-r--r--test/system/Makefile.in31
2 files changed, 52 insertions, 10 deletions
diff --git a/test/system/Makefile.am b/test/system/Makefile.am
index 61527e4d8..a12adc56b 100644
--- a/test/system/Makefile.am
+++ b/test/system/Makefile.am
@@ -1,5 +1,26 @@
-TESTS_ENVIRONMENT = @top_builddir@/bin/cvc4
-TESTS = \
- simple.cvc \
- simple.smt \
- bug1.cvc
+TESTS_ENVIRONMENT =
+TESTS =
+
+# Things that aren't tests but that tests rely on and need to
+# go into the distribution
+TEST_DEPS_DIST =
+
+# Make-level dependencies; these don't go in the source distribution
+# but should trigger a re-compile of all unit tests. Libraries are
+# included here because (1) if static-linking, the tests must be
+# relinked, and (2) if they've changed that means the sources changed,
+# and that means we should ensure the tests compile against any
+# changes made in the header files.
+TEST_DEPS_NODIST = \
+ $(abs_top_builddir)/src/libcvc4.la \
+ $(abs_top_builddir)/src/parser/libcvc4parser.la
+
+TEST_DEPS = \
+ $(TEST_DEPS_DIST) \
+ $(TEST_DEPS_NODIST)
+
+EXTRA_DIST = \
+ $(TEST_DEPS_DIST)
+
+# rebuild tests if a library changes
+$(TESTS):: $(TEST_DEPS)
diff --git a/test/system/Makefile.in b/test/system/Makefile.in
index 4b457a954..2496a1849 100644
--- a/test/system/Makefile.in
+++ b/test/system/Makefile.in
@@ -34,6 +34,7 @@ POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
+TESTS =
subdir = test/system
DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -192,11 +193,28 @@ target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-TESTS_ENVIRONMENT = @top_builddir@/bin/cvc4
-TESTS = \
- simple.cvc \
- simple.smt \
- bug1.cvc
+TESTS_ENVIRONMENT =
+
+# Things that aren't tests but that tests rely on and need to
+# go into the distribution
+TEST_DEPS_DIST =
+
+# Make-level dependencies; these don't go in the source distribution
+# but should trigger a re-compile of all unit tests. Libraries are
+# included here because (1) if static-linking, the tests must be
+# relinked, and (2) if they've changed that means the sources changed,
+# and that means we should ensure the tests compile against any
+# changes made in the header files.
+TEST_DEPS_NODIST = \
+ $(abs_top_builddir)/src/libcvc4.la \
+ $(abs_top_builddir)/src/parser/libcvc4parser.la
+
+TEST_DEPS = \
+ $(TEST_DEPS_DIST) \
+ $(TEST_DEPS_NODIST)
+
+EXTRA_DIST = \
+ $(TEST_DEPS_DIST)
all: all-am
@@ -477,6 +495,9 @@ uninstall-am:
uninstall uninstall-am
+# rebuild tests if a library changes
+$(TESTS):: $(TEST_DEPS)
+
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback