added more tests

git-svn-id: http://svn.clifford.at/openscad/trunk@497 b57f626f-c46c-0410-a088-ec61d464b74c
stl_dim
kintel 2010-03-31 00:45:53 +00:00
parent 42608f4393
commit 3db725a295
4 changed files with 29 additions and 0 deletions

12
scripts/batch-tests-stl.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
cmd="openscad"
[ -x "./openscad" ] && cmd="./openscad"
[ -x "./OpenSCAD.app/Contents/MacOS/OpenSCAD" ] && cmd="./OpenSCAD.app/Contents/MacOS/OpenSCAD"
mkdir -p output
for f in testdata/scad/*-tests.scad; do
echo `basename $f .scad`
"$cmd" -s output/`basename $f .scad`.stl $f
done

9
test-code/batch-cgal-tests.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
cmd="./cgaltest"
for f in ../testdata/scad/*-tests.scad; do
echo == `basename $f .scad` ==
"$cmd" "$f"
done

4
testdata/scad/difference-tests.scad vendored Normal file
View File

@ -0,0 +1,4 @@
difference() {
sphere(3);
cube([3,3,8], center=true);
}

4
testdata/scad/intersection-tests.scad vendored Normal file
View File

@ -0,0 +1,4 @@
intersection() {
sphere(3);
cube([3,3,8], center=true);
}