Garth Minette
9d9234513d
Fix regressions return code.
2021-06-10 15:25:34 -07:00
Michael Diamond
0666f6482c
Refactor and tidy BOSL's shell scripts
...
* Fixed ShellCheck.net warnings, including
* exit -1: https://github.com/koalaman/shellcheck/wiki/SC2242
* cd || exit: https://github.com/koalaman/shellcheck/wiki/SC2164
* "$foo": https://github.com/koalaman/shellcheck/wiki/SC2086
* $(( $foo )): https://github.com/koalaman/shellcheck/wiki/SC2004
* grep | wc -l: https://github.com/koalaman/shellcheck/wiki/SC2126
* Use arrays instead of unquoted strings for loops and command arguments
* Use (( ... )) arithmetic context instead of string comparisons
* Use bash's built-in regex support instead of grep+sed+awk
* Write errors to stderr
2021-05-21 01:01:15 -07:00
Hans Loeblich
d287dfe9f1
Check openscad return code in run_tests.sh
...
I found that even though my openscad was crashing on tests_hull.scad, this script reported that it had passed. This change saves the exit code of the openscad command, and checks that it is 0 (success).
2020-12-16 15:46:23 -06:00
Garth Minette
7f5257fefb
Allow running single test scripts.
2020-06-30 17:18:33 -07:00
Revar Desmera
fdcd7453b3
Regression fails should fail CI.
2020-06-19 23:25:59 -07:00
Revar Desmera
4cfd38e24f
Regression test CI fix.
2020-06-19 23:18:04 -07:00
Revar Desmera
6100cae586
OpenSCAD cannot be relied on to return an error code on assert fail.
2019-11-05 17:31:58 -08:00
Revar Desmera
6c282b07a9
Fix run_tests to not leave behind .off file.
2019-10-30 18:54:03 -07:00
Revar Desmera
b0caccebe7
Regression test fixes.
2019-10-23 22:49:40 -07:00
Revar Desmera
2b2aa1496a
Test script fixes.
2019-05-26 12:17:04 -07:00
Revar Desmera
26d16a3187
Split compat.scad out into errors.scad and common.scad
2019-05-15 21:07:27 -07:00