mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
50ba747abe
- Add a patch fixing jsoncpp include. - Add a build flag for java support. - Add a `yacas-gui` build that is built with Gui (and jupyter support disabled). - Enable tests. - Reformat expression with a 1 input / argument per line.
27 lines
964 B
Diff
27 lines
964 B
Diff
diff --git i/tests/test-yacas w/tests/test-yacas
|
|
index b375d78b..0e3a616b 100755
|
|
--- i/tests/test-yacas
|
|
+++ w/tests/test-yacas
|
|
@@ -35,9 +35,9 @@ FAILED_TESTS="" # list of failed tests
|
|
FAILURES=0 # number of failed tests
|
|
TOTALTESTS=0 # total number of tests
|
|
|
|
-TESTFILE=/tmp/test-yacas.$$
|
|
-TIMEFILE=/tmp/time-yacas.$$
|
|
-VERSIONF=/tmp/version-yacas-$$.ys
|
|
+TESTFILE="$(mktemp -t test-yacas.XXX)"
|
|
+TIMEFILE="$(mktemp -t time-yacas.XXX)"
|
|
+VERSIONF="$(mktemp -t version-yacas-XXX.ys)"
|
|
LOGFILE=yacas-logfile.txt
|
|
echo "Print(Version());" > $VERSIONF
|
|
VERSION=`$CMD $VERSIONF`
|
|
@@ -69,7 +69,7 @@ for scr in $SCRIPTS; do
|
|
# fi
|
|
echo "Running $scr"
|
|
if [ -f $TESTFILE ]; then rm $TESTFILE ; fi
|
|
- /bin/bash -c "time -p ($CMD $f || echo \"Error: exit status $?\") | tee $TESTFILE" \
|
|
+ bash -c "time -p ($CMD $f || echo \"Error: exit status $?\") | tee $TESTFILE" \
|
|
2> $TIMEFILE \
|
|
|| (echo "Error -- User interrupt" > $TESTFILE)
|
|
# cat $TIMEFILE
|