3 # This script expects one command line argument: The name of the lisp.
6 # This is the general driver used by the testsuite to run tests by
7 # "make check" in the tests directory. It gets processed by a
8 # simple-minded sed script to fill in the lisp implementation etc
9 # below and turns into <lispname>-test.sh
11 LOCAL_MAXIMA
=@top_builddir@
/maxima-local
15 # Die if a command fails
18 # This command doesn't exit with a helpful status if the lisp survives
19 # but the test fails so we must check by hand that nothing untoward
22 # Since commit 76db0aec5 introduced the ability to read answers to
23 # interactive tests from the input file, the regression test
24 # rtest_ask1.mac is run as a regular regression test.
25 echo "Running the testsuite..."
26 $LOCAL_MAXIMA --lisp=$LISP --batch-string='build_info();run_testsuite(share_tests=true);' 2>&1 |
tee "$OUTPUT_LOG"
28 grep -q 'No unexpected errors' <"$OUTPUT_LOG"
29 if test $?
-ne 0 ; then
30 # We'll have another copy of the log from the output of this script,
31 # so there's no point in leaving the greppable one lying around.
37 # We'll have another copy of the log from the output of this script,
38 # so there's no point in leaving the greppable one lying around.