diff options
author | chrysn <chrysn@fsfe.org> | 2013-06-24 16:41:50 (GMT) |
---|---|---|
committer | chrysn <chrysn@fsfe.org> | 2013-06-25 11:41:48 (GMT) |
commit | 7d53e564aaa522fdb16cb92831741354ab18dee7 (patch) | |
tree | e336324418e7723300625f9ef6eb1d3d2fc1cab6 /tests/dumptest | |
parent | 84857ac157d3097be4ca32378cbd0855e4577b90 (diff) |
use openscad as a replacement for dumptest and echotest
the echotest and dumptest still contain hacks to keep the delta to the
original unit tests minimal; possibly, some of these changes will make
it into the openscad program, at which time they can go away from there.
Diffstat (limited to 'tests/dumptest')
-rwxr-xr-x | tests/dumptest | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/dumptest b/tests/dumptest new file mode 100755 index 0000000..180fa1b --- /dev/null +++ b/tests/dumptest @@ -0,0 +1,11 @@ +#!/bin/sh + +openscad $1 -o $2 + +sed 's/, timestamp = [0-9]*//' -i $2 + +sed 's/-nan/nan/g' -i $2 + +sed 's/-\(0[],)]\)/\1/g' -i $2 + +sed 's/-\?[0-9].[0-9]*e-[0-9]\{2,\}/0/g' -i $2 |