BOSL2/scripts/run_tests.sh
2019-10-23 22:49:40 -07:00

9 lines
342 B
Bash
Executable file

#!/bin/bash
OPENSCAD=/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD
for testscript in tests/test_*.scad ; do
repname="$(basename $testscript|sed 's/^test_//')"
${OPENSCAD} -o .off --hardwarnings --check-parameters true --check-parameter-ranges true $testscript 2>&1 && echo "$repname: PASS" || echo -e "$repname: FAIL!\n"
done