Add mathjax for zgeev and zheev
[maxima.git] / tests / test.sh.in
blobe192c25b5dacf98e885a2ba23b6fc2829bace323
1 #!/bin/sh
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
12 OUTPUT_LOG="$1.log"
13 LISP=$1
15 # Die if a command fails
16 set -e
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
20 # happened.
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.
32 rm "$OUTPUT_LOG"
33 exit 1
34 fi;
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.
39 rm "$OUTPUT_LOG"