mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
OpenSCAD cannot be relied on to return an error code on assert fail.
This commit is contained in:
parent
108173a0f1
commit
6100cae586
2 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BOSL_VERSION = [2,0,3];
|
||||
BOSL_VERSION = [2,0,4];
|
||||
|
||||
|
||||
// Section: BOSL Library Version Functions
|
||||
|
|
Loading…
Reference in a new issue