summaryrefslogtreecommitdiff
path: root/tests/echotest
diff options
context:
space:
mode:
authorchrysn <chrysn@fsfe.org>2013-06-24 16:41:50 (GMT)
committerchrysn <chrysn@fsfe.org>2013-06-25 11:41:48 (GMT)
commit7d53e564aaa522fdb16cb92831741354ab18dee7 (patch)
treee336324418e7723300625f9ef6eb1d3d2fc1cab6 /tests/echotest
parent84857ac157d3097be4ca32378cbd0855e4577b90 (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/echotest')
-rwxr-xr-xtests/echotest9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/echotest b/tests/echotest
new file mode 100755
index 0000000..2ca520c
--- /dev/null
+++ b/tests/echotest
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+openscad $1 -o null 2> $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
contact: Jan Huwald // Impressum