BOSL2/scripts/run_tests.sh

11 lines
365 B
Bash
Raw Normal View History

#!/bin/bash
OPENSCAD=/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD
for testscript in tests/test_*.scad ; do
2019-10-24 05:49:40 +00:00
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"
rm -f out.echo
done