diff options
Diffstat (limited to 'test/regress')
-rw-r--r-- | test/regress/regress0/Makefile.am | 2 | ||||
-rw-r--r-- | test/regress/regress0/arith/Makefile.am | 28 | ||||
-rw-r--r-- | test/regress/regress0/arith/arith.01.cvc | 6 | ||||
-rw-r--r-- | test/regress/regress0/arith/arith.02.cvc | 7 | ||||
-rw-r--r-- | test/regress/regress0/arith/arith.03.cvc | 6 |
5 files changed, 48 insertions, 1 deletions
diff --git a/test/regress/regress0/Makefile.am b/test/regress/regress0/Makefile.am index 7f732b17f..c376be91b 100644 --- a/test/regress/regress0/Makefile.am +++ b/test/regress/regress0/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = . precedence uf +SUBDIRS = . arith precedence uf TESTS_ENVIRONMENT = @srcdir@/../run_regression @top_builddir@/src/main/cvc4 MAKEFLAGS = -k diff --git a/test/regress/regress0/arith/Makefile.am b/test/regress/regress0/arith/Makefile.am new file mode 100644 index 000000000..e4fc110b4 --- /dev/null +++ b/test/regress/regress0/arith/Makefile.am @@ -0,0 +1,28 @@ +TESTS_ENVIRONMENT = @srcdir@/../../run_regression @top_builddir@/src/main/cvc4 + +# 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 = \ + arith.01.cvc \ + arith.02.cvc + +EXTRA_DIST = $(TESTS) + +#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 +regress1 regress2 regress3: diff --git a/test/regress/regress0/arith/arith.01.cvc b/test/regress/regress0/arith/arith.01.cvc new file mode 100644 index 000000000..5b4a33bed --- /dev/null +++ b/test/regress/regress0/arith/arith.01.cvc @@ -0,0 +1,6 @@ +% EXPECT: VALID +x : REAL; +y : REAL; + +QUERY (x * y ) = (y * x); +% EXIT: 20 diff --git a/test/regress/regress0/arith/arith.02.cvc b/test/regress/regress0/arith/arith.02.cvc new file mode 100644 index 000000000..a2c93da46 --- /dev/null +++ b/test/regress/regress0/arith/arith.02.cvc @@ -0,0 +1,7 @@ +% EXPECT: VALID +x : REAL; +y : REAL; +z : REAL; + +QUERY x*(y*z) = (x*y)*z; +% EXIT: 20 diff --git a/test/regress/regress0/arith/arith.03.cvc b/test/regress/regress0/arith/arith.03.cvc new file mode 100644 index 000000000..96af458f0 --- /dev/null +++ b/test/regress/regress0/arith/arith.03.cvc @@ -0,0 +1,6 @@ +% EXPECT: VALID +x : REAL; +y : REAL; + +QUERY (x + y)*(x + y) = x*x + 2*x*y + y*y; +% EXIT: 20 |