Don Bright
3eda281be1
allow openscad binary to be compiled with or without QT. use non-QT for tests.
2013-09-20 00:19:09 -05:00
don bright
9a484d7170
fix camdist test, issue #430
2013-09-15 08:22:35 +02:00
Marius Kintel
ead8749e99
Merge pull request #476 from openscad/testfixes
...
Testfixes
2013-09-12 22:06:17 -07:00
Don Bright
30fd8b250a
little tweaks, cleanups, tab fixing, eliminating comments
2013-09-12 20:03:27 -05:00
Don Bright
6af6c311a1
cmdline throwntogether, integrate w chrysn tests, update resize tests
2013-09-12 00:17:17 -05:00
Don Bright
ea92d9ce19
fix issue #430
2013-09-11 19:52:31 -05:00
Marius Kintel
fe7fb45019
Support out-of-source use of testsuite. Fixes #456
2013-08-17 13:18:49 -04:00
Don Bright
6900160b7d
commit bugfix per report from chrysn to mailing list 8/8/13
2013-08-08 18:07:14 -05:00
Marius Kintel
6082dafad8
Re-enable tests which previously cause floating point comparison issues
2013-07-02 00:16:07 -04:00
chrysn
4d18db65e3
python validation for cgal stl sanity test
...
this drops another static binary and replaces it with a very small
shell^Wpython script (again, python used to avoid sed / grep
implementation differences)
2013-06-28 11:47:17 +02:00
chrysn
28e420d871
replace echotest and dumptest with python scripts
...
this solves problems of sed compatibility on different platoforms.
also, the openscad binary to use is now passed in from the ctest script.
2013-06-28 10:50:48 +02:00
chrysn
ad1a11a28e
Merge branch 'master' into no-testprograms
...
Conflicts:
tests/CMakeLists.txt
tests/regression/csgtermtest/assign-expected.term
tests/regression/csgtermtest/child-expected.term
tests/regression/csgtermtest/circle-expected.term
tests/regression/csgtermtest/color-expected.term
tests/regression/csgtermtest/cube-expected.term
tests/regression/csgtermtest/cylinder-expected.term
tests/regression/csgtermtest/difference-expected.term
tests/regression/csgtermtest/dxf_linear_extrude-expected.term
tests/regression/csgtermtest/dxf_rotate_extrude-expected.term
tests/regression/csgtermtest/echo-expected.term
tests/regression/csgtermtest/for-expected.term
tests/regression/csgtermtest/glide-expected.term
tests/regression/csgtermtest/group-expected.term
tests/regression/csgtermtest/hull-expected.term
tests/regression/csgtermtest/if-expected.term
tests/regression/csgtermtest/import-expected.term
tests/regression/csgtermtest/import_dxf-expected.term
tests/regression/csgtermtest/import_off-expected.term
tests/regression/csgtermtest/import_stl-expected.term
tests/regression/csgtermtest/intersection-expected.term
tests/regression/csgtermtest/intersection_for-expected.term
tests/regression/csgtermtest/linear_extrude-expected.term
tests/regression/csgtermtest/minkowski-expected.term
tests/regression/csgtermtest/mirror-expected.term
tests/regression/csgtermtest/multmatrix-expected.term
tests/regression/csgtermtest/polygon-expected.term
tests/regression/csgtermtest/polyhedron-expected.term
tests/regression/csgtermtest/projection-expected.term
tests/regression/csgtermtest/render-expected.term
tests/regression/csgtermtest/rotate-expected.term
tests/regression/csgtermtest/rotate_extrude-expected.term
tests/regression/csgtermtest/scale-expected.term
tests/regression/csgtermtest/sphere-expected.term
tests/regression/csgtermtest/square-expected.term
tests/regression/csgtermtest/subdiv-expected.term
tests/regression/csgtermtest/surface-expected.term
tests/regression/csgtermtest/translate-expected.term
tests/regression/csgtermtest/union-expected.term
tests/regression/dumptest/circle-expected.csg
tests/regression/dumptest/color-expected.csg
tests/regression/dumptest/cube-expected.csg
tests/regression/dumptest/cylinder-expected.csg
tests/regression/dumptest/difference-expected.csg
tests/regression/dumptest/dxf_linear_extrude-expected.csg
tests/regression/dumptest/dxf_rotate_extrude-expected.csg
tests/regression/dumptest/glide-expected.csg
tests/regression/dumptest/import-expected.csg
tests/regression/dumptest/import_dxf-expected.csg
tests/regression/dumptest/import_off-expected.csg
tests/regression/dumptest/import_stl-expected.csg
tests/regression/dumptest/intersection-expected.csg
tests/regression/dumptest/intersection_for-expected.csg
tests/regression/dumptest/linear_extrude-expected.csg
tests/regression/dumptest/minkowski-expected.csg
tests/regression/dumptest/mirror-expected.csg
tests/regression/dumptest/multmatrix-expected.csg
tests/regression/dumptest/polygon-expected.csg
tests/regression/dumptest/polyhedron-expected.csg
tests/regression/dumptest/projection-expected.csg
tests/regression/dumptest/render-expected.csg
tests/regression/dumptest/rotate-expected.csg
tests/regression/dumptest/rotate_extrude-expected.csg
tests/regression/dumptest/scale-expected.csg
tests/regression/dumptest/sphere-expected.csg
tests/regression/dumptest/square-expected.csg
tests/regression/dumptest/subdiv-expected.csg
tests/regression/dumptest/surface-expected.csg
tests/regression/dumptest/translate-expected.csg
2013-06-26 18:06:00 +02:00
Marius Kintel
d9b3f7b52b
Test case for #399
2013-06-25 23:17:51 -04:00
chrysn
a4b5449d4e
remove test binaries for cgsltest, csgtermtest and opencsgtest
2013-06-25 14:25:07 +02:00
chrysn
17cd6d1989
switch opencsgtest to native binary
2013-06-25 14:25:07 +02:00
chrysn
0eb64d8f7a
ctest infrastructure for native .term tests
2013-06-25 13:41:49 +02:00
chrysn
2006824c24
drop moduledumptest, use `openscad -o ${NAME}.ast`
...
src/openscad.cc code was copy/pasted from .csg section; some refactoring
might make things nicer, but i didn't dare change too much for lack of
language knowledge
2013-06-25 13:41:49 +02:00
chrysn
06fd345dfc
drop cgalpngtest all together
...
replaced in CMakeLists.txt with direct openscad call, and duplicate
checks removed
cgalpngtest_text-search-test was left in the Heavy configuration,
resolving the ambiguity of it being heavy with cgalpngtest and not with
openscad-cgalpng (which does the same thing)
2013-06-25 13:41:48 +02:00
chrysn
887c4757b6
drop cgalpngtest for openscad drop in replacement
2013-06-25 13:41:48 +02:00
chrysn
7d53e564aa
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.
2013-06-25 13:41:48 +02:00
Marius Kintel
a3cd019494
Removed a bunch of less useful tests
2013-06-23 01:56:04 -04:00
Marius Kintel
10032341e2
Default to clang for Mac OS X 10.7+
2013-06-20 00:05:09 -04:00
Marius Kintel
80d81d9b76
Added scope and reassignment tests
2013-06-13 01:26:36 -04:00
Don Bright
49af42cfd0
a few fixes for netbsd
2013-06-08 23:49:21 -05:00
Marius Kintel
41f352a788
Added moduledumptest. Fixes #384
2013-06-01 16:11:44 -04:00
Marius Kintel
e40eeaf8c8
bugfix: actually link to OPENGL_LIBRARIES instead of OPENGL_LIBRARY, remove qt linkage
2013-05-28 17:15:42 -07:00
Marius Kintel
eb1fc82534
typo
2013-05-26 17:06:56 -04:00
Marius Kintel
6cdffec403
disabled the wrong test by mistake
2013-05-26 17:03:21 -04:00
Marius Kintel
199409c42b
re-disabled some nonsensical test combinations
2013-05-25 13:30:38 -04:00
Marius Kintel
794b80ffcf
Modified tests for #304
2013-05-25 13:11:09 -04:00
don bright
f95941bbba
update cmake to work with custom built GLU in $BASEDIR
2013-05-23 19:31:49 -07:00
Marius Kintel
a1ade23e98
bugfix: messed up parser filenames
2013-05-14 01:31:44 +02:00
Marius Kintel
3780677def
Added testcase for #322
2013-05-09 17:28:05 +02:00
Marius Kintel
14e1ad2363
Forgot to actually add most files in previous commit ( #217 )
2013-05-09 12:12:58 +02:00
Marius Kintel
db8ad9631d
Added failing test for the #217 regression
2013-05-08 16:34:38 +02:00
Marius Kintel
ba20c0e800
Modified parse to allow overloading of variables in local blocks. Also did some minor cleanups while at it. Test cases missing
2013-04-26 18:32:19 -04:00
Marius Kintel
9b740b558d
Further refactoring of scope/context mechanisms. Mostly related to the new FileContext class. Not quite there yet, but almost
2013-04-26 17:45:03 -04:00
Marius Kintel
f55cd8198a
Merge branch 'master' into issue116
2013-04-18 21:52:20 -04:00
don bright
d4d3e7456f
fix bug report in clang detect reported by Marius Kintel
2013-04-18 17:23:08 -07:00
Marius Kintel
b06b4f32f8
Merge branch 'master' into issue116
2013-04-18 18:42:51 -04:00
Don Bright
c5bdc40c26
fix bug in cmake file cgal-flags when using clang
2013-04-14 01:11:09 -05:00
Marius Kintel
49a288cd34
Merge branch 'noqt' into testing
2013-04-10 14:28:51 -04:00
Marius Kintel
a37813a899
Refactored context handling into using separate Module contexts and Eval contexts. This allows for recursive module calls, and cascading children. I believe this fixes issue #116
2013-04-09 00:28:16 -04:00
Marius Kintel
1b8b7aa5fa
I think this should fix issue #217
2013-04-05 01:30:09 -04:00
don bright
c855e4d043
Merge branch 'noqt' of ssh://ssh.github.com:443/openscad/openscad into noqt_tweaks
2013-03-16 21:56:01 +01:00
don bright
5edc8c57da
update cmakelist for building tests in same dir as gui binary
2013-03-16 21:55:38 +01:00
Marius Kintel
dccc039211
Got rid of remaining Qt dependencies. The test framework should now be Qt-free
2013-03-12 01:14:58 -04:00
Marius Kintel
6b8a5e266c
Handle files with non-ascii filenames. Only rudimentary tested. Fixes #113 #290
2013-03-11 22:14:00 -04:00
Marius Kintel
d9c4b77942
Added test case for value reassignment issue. #289
2013-03-11 17:58:05 -04:00
Marius Kintel
be645d8a54
Small generalization of cmd-line test driver. Added tests for image output and camera settings for the OpenSCAD app
2013-03-11 16:12:35 -04:00
Marius Kintel
65e65b6c4c
Support cmake < 2.8.3
2013-03-09 13:05:07 -05:00
Marius Kintel
2ab5a0cc9b
Use function instead of module to avoid leaking global variables
2013-03-08 11:29:55 -05:00
Marius Kintel
5acc695399
Generalized the test driver a tiny bit
2013-03-08 11:08:36 -05:00
don bright
974abf1304
fix strecthing with --imgsize per bug rept from Marius Kintel
2013-03-05 21:10:10 -06:00
Marius Kintel
4734172c3a
Tag test as heavy
2013-03-05 14:16:59 -05:00
don bright
9896b6f15e
first working version of opencsg png export from gui binary
...
also guiopencsgtest introduced. passes 100% of 'normal' tests
2013-02-24 21:07:37 -06:00
don bright
ca41979ee5
Merge branch 'master' of github.com:openscad/openscad into issue11_2
...
Conflicts:
RELEASE_NOTES
openscad.pro
src/mainwin.cc
2013-02-23 21:54:53 -06:00
don bright
ce2a9a8cb5
move enable_opencsg_shaders from csgtestcore to OffscreenView.cc
2013-02-23 20:54:13 -06:00
don bright
0f977609b4
put qglview.h into mainwin for deps. unify camera functions into glview.
...
remove duplicate code.
2013-02-23 18:50:20 -06:00
don bright
b7d1c94dc1
remove unnecessary copy of test_pretty_print.py to builddir
2013-02-19 19:47:01 -06:00
Don Bright
3fc620c965
new upload design using python paramiko. also fix glew bugs.
2013-02-18 19:45:37 -06:00
don bright
7160ab5610
get pretty_printing working under MINGW cross build. update docs
2013-02-16 09:37:01 -06:00
don bright
063a288dce
fix imagemagick finding under mingw cross build test
2013-02-16 07:37:16 -06:00
don bright
f4c8660864
make dumptests work (on linux/mac) when SKIP_IMAGEMAGICK set
2013-02-15 05:29:53 +01:00
don bright
5138dca395
remove debug msg
2013-02-14 19:33:34 -06:00
don bright
c1b1d0992f
tweaks to get tests working on a cross-compile under Wine
2013-02-12 01:07:54 -06:00
Marius Kintel
a4fea6df86
Tag all heavy cgal tests as heavy also for the GUI tests
2013-02-07 15:57:01 -05:00
Marius Kintel
4e519078d6
Merge branch 'master' into issue11_2
2013-02-07 13:43:20 -05:00
don bright
44cddd0b3c
Merge branch 'master' of github.com:openscad/openscad into cmake_workaround
...
Conflicts:
tests/virtualfb.sh
2013-02-03 02:40:26 +01:00
don bright
b390d54471
fix bug in test_pretty_print.cc / Cmakefile
...
The build needs to be after Python binary has been found because the Python
binary path is passed to the .cc compile through a -D flag.
2013-02-03 01:39:43 +01:00
don bright
1a545b75f6
workaround cmake 2.8.10 not allowing CTEST_CUSTOM_POST_TEST arguments
2013-02-02 15:44:25 -08:00
don bright
1f39090cc0
fix GLU issues caued by mesa split from glu. clarify test error msg
2013-01-31 20:16:28 -08:00
don bright
e184c014f0
tests:detect whether openscad gui binary has been built - fail if not
2013-01-31 05:36:12 +01:00
don bright
8ba6a78288
add correct test result images, and minor cleanup
2013-01-31 04:14:09 +01:00
don bright
997a0afac3
Merge branch 'master' and fix bugs
...
Conflicts:
src/openscad.cc
tests/CMakeLists.txt
2013-01-31 03:58:34 +01:00
don bright
d0de384a7e
translate shell script wrapper into C++ code, for portability
2013-01-31 03:42:33 +01:00
Marius Kintel
961dd79d9d
Use file(COPY) instead of configure_file(). Port to Mac
2013-01-29 21:04:41 -05:00
Marius Kintel
81264c1d26
Merge pull request #256 from openscad/glewfix
...
fix bugs and rewrite GLEW finding code to be more clear.
2013-01-28 09:02:46 -08:00
don bright
d6f2cc1a1e
if we are on linux/BSD and there's no X running, try Xvfb automatically.
...
also workaround some Gallium bugs and Imagemagick bugs
2013-01-28 06:38:50 +01:00
don bright
d09e0e7f42
fix pkg-config to actually work
2013-01-28 05:15:38 +01:00
don bright
9f83c8ffe7
fix bugs and rewrite GLEW finding code to be more clear.
2013-01-27 20:06:08 +01:00
don bright
391c725aeb
integrate gui cmdline into test framework
2013-01-26 18:55:47 +01:00
Marius Kintel
810f1a8618
Don't just ignore geometric nodes having zero volume/area - when doing difference/intersection, they tend to turn negative objects into positive ones. Fixes #221
2013-01-08 13:26:25 -05:00
don bright
f54797cfbd
fixes for test suite and gcc
2012-10-28 20:22:04 +01:00
Marius Kintel
65fc1d6b01
Detect recursive execution of functions to avoid a stack overflow crash. Fixes #200
2012-10-09 23:32:56 -04:00
Marius Kintel
a629560cee
Merge pull request #186 from openscad/issue185
...
Issue185
2012-08-21 17:31:28 -07:00
don bright
358129cad6
improve test scad. don't use dumptest(), 'nan' is a bit of a problem
2012-08-21 02:39:18 +02:00
Marius Kintel
1e56bf65b9
Merge commit '765f1a98dc124e1913b53ea8467908b8b8bda032'
2012-08-20 19:49:00 -04:00
don bright
a5da9c899b
improve test scad
2012-08-21 01:40:06 +02:00
Marius Kintel
b5cc07098b
collect library dependencies a bit to reduce duplication
2012-08-20 19:15:14 -04:00
Marius Kintel
63882721d7
Added support for Mac OS X Lion
2012-08-20 08:56:29 -04:00
don bright
765f1a98dc
cleanup
2012-08-19 08:29:22 -05:00
don bright
fc945bfdc4
fix small bugs in eigen build scripts
2012-08-19 08:27:49 -05:00
don bright
5d31f56d93
look for EIGENDIR env var. (also look for EIGEN2DIR for backwards compatability)
2012-08-19 08:10:33 -05:00
don bright
a9045315ba
rewrite Eigen detection in CMakelists. cleanup files for pull request.
2012-08-19 07:58:30 -05:00
don bright
aa2c67d249
make EIGEN_DONT_ALIGN flag work. also remove warnings when using clang.
2012-08-18 21:35:12 -05:00
don bright
c4d68588a6
modify build system to auto-detect eigen3, and fallback to eigen2
2012-08-19 00:14:17 +02:00
don bright
10c7607541
more eigen3 fixes.
...
1. finish converting 'using namespace boost::filsystem' to 'namespace fs = boost::filesystem'.
2. initial version of changes to CMakelists.txt for the regression test
2012-08-18 22:44:46 +02:00
Marius Kintel
38cb06c3f0
Added test cases for issue #123
2012-06-04 11:22:09 +02:00
don bright
cd2d2dabf6
enable CMAKE to find glew on systems that use 'lib64'
2012-06-02 21:57:28 +02:00