OpenSCAD cannot be relied on to return an error code on assert fail.

This commit is contained in:
Revar Desmera 2019-11-05 17:31:58 -08:00
parent 108173a0f1
commit 6100cae586
2 changed files with 10 additions and 2 deletions

View file

@ -4,7 +4,15 @@ OPENSCAD=/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD
for testscript in tests/test_*.scad ; do
repname="$(basename $testscript|sed 's/^test_//')"
${OPENSCAD} -o out.echo --hardwarnings --check-parameters true --check-parameter-ranges true $testscript 2>&1 && echo "$repname: PASS" || echo -e "$repname: FAIL!\n"
${OPENSCAD} -o out.echo --hardwarnings --check-parameters true --check-parameter-ranges true $testscript 2>&1
res=$(cat out.echo)
if [ "$res" = "" ] ; then
echo "$repname: PASS"
else
echo "$repname: FAIL!"
cat out.echo
echo
fi
rm -f out.echo
done

View file

@ -8,7 +8,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,3];
BOSL_VERSION = [2,0,4];
// Section: BOSL Library Version Functions