Commit Graph

493 Commits (5d31f56d9313dcaa8f2304819b7d54ff9aaaf01a)

Author SHA1 Message Date
don c7a809e0fd fix broken build 2011-10-19 19:37:00 -05:00
Don Bright 0356c77a2f Merge branch 'visitortests' of github.com:donbright/openscad into visitortests
Conflicts:
	tests/system-gl.cc
2011-10-19 17:34:11 -05:00
Don Bright 4799b7b555 always dump hex code of GL error 2011-10-19 17:30:19 -05:00
Don Bright 2325f621d8 Merge branch 'visitortests' of github.com:donbright/openscad into visitortests 2011-10-18 20:57:27 -05:00
Don Bright 40b1b4ac27 improve OpenGL error reporting. tracking down INVALID_ENUM bug 2011-10-18 20:55:42 -05:00
don b 1a1ab5b5ab improve freebsd build. also remove windows unicode preamble from .cc 2011-10-17 23:16:02 -05:00
Marius Kintel a5d5d21dfb Merge remote-tracking branch 'origin/visitortests' into visitortests 2011-10-16 23:13:42 +02:00
Marius Kintel f4ee7e90d8 Linux cmake fixes 2011-10-16 22:50:29 +02:00
Don Bright 4159e9dc5f Merge remote branch 'upstream/visitortests' into visitortests 2011-10-16 13:13:18 -05:00
Marius Kintel dea923c847 M_PI define for Windows 2011-10-16 18:54:18 +02:00
Don Bright c0592dc3b8 fix small bugs 1. error reporting 2. fbo teardown 2011-10-16 11:52:13 -05:00
Marius Kintel 1dcfd7627b Merge branch 'master' into visitortests
Conflicts:
	tests/CMakeLists.txt
	tests/echotest.cc
2011-10-16 18:10:22 +02:00
Marius Kintel 790c9a1925 Increase pixel diff threshold 2011-10-16 18:08:34 +02:00
Marius Kintel 24634b3ecc merged 2011-10-16 18:06:36 +02:00
Marius Kintel 006329bff0 Testing with different color space - should hopefully create more similar output images 2011-10-16 17:52:20 +02:00
Marius Kintel df7626a022 Modified to write to explicit filename 2011-10-16 17:50:55 +02:00
Marius Kintel 43839582e9 Merged 2011-10-16 17:50:33 +02:00
notroot adf7cd51fb clarify error messages. 2011-10-16 14:15:08 +00:00
Don Bright de53382a3d small cleanup 2011-10-15 20:22:06 -05:00
Don Bright 7332ec9fe2 clean up linux changes to fit with win32 changes. 2011-10-15 20:14:35 -05:00
don bright 7735f5510c opencsgtest and throwntogethertest windows fix 2011-10-15 23:44:21 -05:00
don bright e79ee82718 fix text tests for windows + enable framebuffer tests 2011-10-15 22:59:54 -05:00
don bright 786dc3de41 wgl window functions 2011-10-15 17:26:57 -05:00
don bright 684b9eceb7 fix bizarre win32 syntax error with eigen alignedbox 2011-10-15 16:44:52 -05:00
don bright 8e844bf76c Merge branch 'visitortests' of github.com:donbright/openscad into visitortests
Conflicts:
	tests/CMakeLists.txt
2011-10-15 15:53:30 -05:00
don bright 17ccbace5f improve documentation. move EIGEN_DONT_ALIGN to makefile. win32 build fixes. 2011-10-15 15:48:41 -05:00
notroot a9e4220796 fix win compile switch 2011-10-11 21:07:30 -04:00
don bright 55f4a6150f enable test_cmdline to work in Windows 2011-10-10 21:51:46 -05:00
don bright 31592577d3 enable building of opencsgtest, throwntogethertest, on WinXP 2011-10-10 21:46:27 -05:00
don bright a1c698f422 enable build of cgalpngtest under windowsXP 2011-10-10 18:01:51 -05:00
notroot 6251fc3268 +throwntogethertest expected images, made by Mesa software renderer in VMware 2011-10-10 13:40:37 +00:00
Don Bright fdae668899 Merge branch 'visitortests' of github.com:donbright/openscad into visitortests 2011-10-09 23:48:22 -05:00
Don Bright a010b7b747 reorder destruction of window to proper position 2011-10-09 23:47:42 -05:00
don bright 33da91d87d make yee_compare downsample images, reduce false-negatives and increase speed 2011-10-10 00:45:53 -04:00
Don Bright b2f193d631 more documentation and tab removal 2011-10-09 23:18:10 -05:00
Don Bright 67e3c307bb documentation 2011-10-09 22:34:24 -05:00
Don Bright 84b90972f4 fix glx initialization, better error handling, better portability 2011-10-09 22:29:12 -05:00
notroot b31e2713d2 improve error reporting, prevent running when FBO doesn't bind 2011-10-09 08:26:48 -04:00
Don Bright 589991c41e Linux offscreen OpenGL using glxpixmaps. also fix FBO ARB/EXT issues 2011-10-08 20:02:40 -05:00
Marius Kintel 25edffcff4 Added echotest and echo test cases 2011-10-08 14:53:47 +02:00
Marius Kintel 872fc64321 We don't need to use the EXT version of FBO calls 2011-10-06 01:51:54 +02:00
Marius Kintel 6395435db7 Clean up the fbo component, fix related issues 2011-10-04 23:24:32 +02:00
Marius Kintel 799ca1d1b3 Merge branch 'master' into visitortests
Conflicts:
	src/polyset.h
2011-10-04 21:06:40 +02:00
Marius Kintel 85948590ee Added euler angle rotate test 2011-10-04 03:40:54 +02:00
Marius Kintel afc0f1e949 Added euler angle rotate test 2011-10-04 03:32:08 +02:00
Marius Kintel ad3accb52a Compile fix: Added OPENSCAD_YEAR and OPENSCAD_MONTH defines 2011-10-04 03:04:00 +02:00
Marius Kintel 84e98b178a Cleaned up some unnecessary includes 2011-10-01 01:36:30 +02:00
Marius Kintel 2601d468e3 Added dxf test cases 2011-10-01 00:43:38 +02:00
Marius Kintel e5c242adb7 Moved transform-insert test from minimal to dxf 2011-09-30 19:03:10 +02:00
Marius Kintel 9259d57659 Merge branch 'master' into visitortests 2011-09-30 03:41:52 +02:00
Marius Kintel f3b3eaac68 Added polyhedron-tests 2011-09-30 03:25:42 +02:00
Marius Kintel e7001dd459 Reverted intersection with inside-out polyhedron - test belongs in the polyehdron test 2011-09-30 03:24:49 +02:00
Marius Kintel bf3fb9634c Renamed some files and classnames for clarification 2011-09-30 03:11:28 +02:00
Marius Kintel 2262afa92b Added test case for polyhedron intersection bug reported by Dan Zuras 2011-09-29 12:51:29 +02:00
Marius Kintel 8c94c31dd2 More refactoring of offscreen rendering 2011-09-29 04:05:59 +02:00
Marius Kintel 846970462a More refactoring of offscreen rendering 2011-09-29 04:05:47 +02:00
Marius Kintel c6e5e84eec Linux compile fixes 2011-09-29 02:35:24 +02:00
Marius Kintel f0772e73bd Refactored offscreen context a bit to get a better overview 2011-09-29 01:58:12 +02:00
Marius Kintel 2b3c140bd2 Merge branch 'master' into visitortests
Conflicts:
	tests/opencsgtest.cc
2011-09-29 01:57:52 +02:00
Marius Kintel 51155dc691 cosmetics 2011-09-28 22:33:51 +02:00
Marius Kintel dd45e625ed added expected file for highlight-and-background-modifier test 2011-09-28 22:33:36 +02:00
Marius Kintel d33eae21e2 added highlight-and-background-modifier and child-background tests 2011-09-28 22:32:35 +02:00
Marius Kintel fcb0145cb8 Added expected files for include-tests 2011-09-28 22:29:58 +02:00
Marius Kintel 6c3ce99347 Mac compile fix 2011-09-28 03:04:29 +02:00
Don Bright 917fb65415 test throwntogether 2011-09-27 16:58:03 -05:00
Don Bright 1f67e60eae fix crash 2011-09-27 16:53:39 -05:00
Don Bright c2fd035d02 forgot to commit csgtestcore 2011-09-27 16:47:50 -05:00
Don Bright a2e093c2f1 separate throwntogethertest and opencsgtest
create 'expected' images for throwntogethertest
create imgdiff_fail html file generation
2011-09-21 20:11:01 -05:00
Don Bright ccc88b0c43 get throwntogetherrenderer working in tests (initalize csgInfo to null) 2011-09-19 21:25:05 -05:00
Don Bright 24fa66ca38 copyright notice 2011-09-18 18:21:52 -05:00
Don Bright 0b219ae4b4 opencsg testing 2011-09-18 17:53:33 -05:00
Don Bright 6d70855a4d added png and image comparison, enabling testing on linux 2011-09-17 16:13:37 -05:00
Don Bright f5f06c8e97 merge
Merge remote branch 'upstream/visitor' into visitortests

Conflicts:
	src/export.cc
	src/openscad.cc
	src/polyset.cc
	src/transform.cc
	tests/CMakeLists.txt
	tests/FindGLEW.cmake
	tests/csgtermtest.cc
2011-09-12 17:40:51 -05:00
Don Bright 133a705fee merging
Merge remote branch 'upstream/master' into visitortests

Conflicts:
	src/cgaladv.cc
	src/export.cc
	src/openscad.cc
	src/polyset.cc
	src/transform.cc
2011-09-12 17:31:02 -05:00
Marius Kintel ccb6af2816 Don't output deprecated parameters if they're not specified 2011-09-12 03:46:13 +02:00
Marius Kintel 95949cf961 Implemented CGAL caching 2011-09-11 10:51:55 +02:00
Marius Kintel 18e97e0bd3 Fixed bug introduced by the new PolySet cache; string filtering done in the wrong place, refactored cache into separate class 2011-09-11 09:10:31 +02:00
Marius Kintel cbba974d3a Initial attempt of cleaning up polyset handling. PolySet no longer keeps a refcount, basic cache mechanism is in place, instantiating polysets are controlled through PolySetEvaluator 2011-09-09 05:53:05 +02:00
Marius Kintel a18dd3961d Added ifelse-tests 2011-09-08 08:52:31 +02:00
Marius Kintel 5ce3d4ff8d Added child-tests 2011-09-08 08:21:53 +02:00
Marius Kintel 297a6f61c6 Added include-tests 2011-09-08 02:31:47 +02:00
Marius Kintel 233521a11d Added assign-tests 2011-09-07 22:56:39 +02:00
Marius Kintel e9068e5adf Updated tests to reflect recently changed import behavior 2011-09-07 22:27:29 +02:00
Marius Kintel 27a99044d8 Implemented OFF import, refactored PolySet/Polyhedron conversion 2011-09-07 22:04:59 +02:00
Marius Kintel 75784844ea Implemented OFF export 2011-09-07 22:04:02 +02:00
Marius Kintel 226e36a75f Adapted to latest import() changes 2011-09-07 02:32:37 +02:00
Marius Kintel a4ba8d44a4 Modified test cases with new import() behavior 2011-09-07 01:12:53 +02:00
Marius Kintel a93e644980 Added hull tests 2011-09-06 22:01:42 +02:00
Marius Kintel 7d1ea6240d Added projection-tests 2011-09-06 20:36:45 +02:00
Marius Kintel 98b0c637a8 OpenCSG version of render-tests now also works 2011-09-06 18:32:32 +02:00
Marius Kintel 3b16fdafd2 added some debug output 2011-09-06 18:31:05 +02:00
Marius Kintel 15542c374d Added render-tests 2011-09-06 18:28:01 +02:00
Marius Kintel fdd96a177c Added minkowski and 2d-3d tests 2011-09-06 14:56:04 +02:00
Marius Kintel 23af865389 Added transform-tests 2011-09-05 18:20:43 +02:00
Marius Kintel 06001a4665 Added surface-tests 2011-09-05 18:00:20 +02:00
Marius Kintel ae24edb790 Added intersection_for-tests 2011-09-05 17:55:17 +02:00
Marius Kintel a63612e57b Added rotate_extrude-tests 2011-09-05 17:15:56 +02:00
Marius Kintel d5fefdf37c Added linear_extrude-tests 2011-09-05 17:03:39 +02:00
Marius Kintel 4a952c3cc0 bugfix: Forgot to enable PolySetCGALEvaluator 2011-09-05 17:02:37 +02:00
Marius Kintel ff75302002 Added for-nested-tests 2011-09-05 16:38:50 +02:00
Marius Kintel d6947ce5c7 Updated for-tests after discovering a few bugs 2011-09-05 16:37:07 +02:00
Marius Kintel b93c5c50ca Added for-tests 2011-09-05 00:04:12 +02:00
Marius Kintel 59b0d16488 bugfix: Don't try to export empty polyhedrons 2011-09-04 23:20:50 +02:00
Marius Kintel 723c6b7cf2 bugfix: root modifier now works with test apps 2011-09-04 18:53:09 +02:00
Marius Kintel bdd7c1f583 Added modifier tests. root modifier is still not working for cmd-line tools 2011-09-04 18:25:17 +02:00
Marius Kintel 2af8a70b71 Activated opencsgtest 2011-09-04 02:53:30 +02:00
Marius Kintel 3d204ad27b Filename case fix 2011-09-04 01:59:06 +02:00
Marius Kintel 821c7df1fe Extracted handle_dep() to separate source file 2011-09-04 00:03:16 +02:00
Marius Kintel 946605234c Added import_dxf-tests 2011-09-03 22:42:48 +02:00
Marius Kintel 90e96a34ac Added polygon-tests 2011-09-03 19:57:24 +02:00
Marius Kintel 7adf625ecc Added allfunctions 2011-09-03 19:32:55 +02:00
Marius Kintel 34e4213c33 default color somehow got messed up - fixed now 2011-09-03 19:18:26 +02:00
Marius Kintel f31d7b7596 Updated color node to latest version 2011-09-02 23:54:56 +02:00
Marius Kintel 8685ce946b Added color.cc 2011-09-02 23:54:41 +02:00
Marius Kintel 34e22b1bde Updated color output to updated code 2011-09-02 23:40:17 +02:00
Marius Kintel 21c5d879ff Added expected files for csgtermtest 2011-09-02 23:39:39 +02:00
Marius Kintel 287c20d2ff Added color-tests 2011-09-02 23:33:18 +02:00
Marius Kintel a1e452472a Added intersection-tests 2011-09-02 14:46:45 +02:00
Marius Kintel a20c08b8ce Added difference-tests 2011-09-02 14:38:27 +02:00
Marius Kintel 8e0651afd4 Added union-tests 2011-09-02 14:31:56 +02:00
Marius Kintel ac1ce87f19 Only enable verified tests 2011-09-02 02:48:22 +02:00
Marius Kintel f7bc79f349 Added cube-tests 2011-09-02 02:40:29 +02:00
Marius Kintel 6759d80cf4 Added cylinder-tests 2011-09-02 02:34:42 +02:00
Marius Kintel b066705716 added expected files 2011-09-02 01:50:30 +02:00
Marius Kintel 8fb9ab4843 Make field of view narrower to look better 2011-09-01 22:44:51 +02:00
Marius Kintel 7599b30f86 Reinstate opencsg tests 2011-09-01 22:44:16 +02:00
Marius Kintel 915c530ac4 Support for 2D designs 2011-09-01 22:43:56 +02:00
Marius Kintel 0d4329d059 Configure cgalpngtest 2011-09-01 20:04:01 +02:00
Marius Kintel fee63ab7ae added bbox calculation 2011-09-01 17:02:50 +02:00
Marius Kintel 6392776e4e Initial implementation of cgalpngtest 2011-09-01 05:04:42 +02:00
Marius Kintel 1633fb0344 Refactoring of CGAL functionality to allow for forward-declaration of CGAL classes in header files, reducing coupling and thus compilation times 2011-09-01 04:09:06 +02:00
Marius Kintel 9e64453206 Added circle-tests 2011-08-30 19:14:35 +02:00
Marius Kintel 573a78c3c3 Added square-tests 2011-08-30 05:06:46 +02:00
Marius Kintel 7c391a24c1 Updated camera settings 2011-08-30 05:03:35 +02:00
Marius Kintel d4dfe51118 Camera handling fixes 2011-08-30 05:01:59 +02:00
Marius Kintel 3e558d4446 Linux build fix 2011-08-28 02:42:37 +02:00
Marius Kintel ab3b10e889 mixed-case filename fixes 2011-08-28 02:42:24 +02:00
Don Bright eb79c56ece allow compilation and running on linux. use SDL for OpenGL dummy window 2011-08-27 17:11:47 -05:00
Marius Kintel 065e1de739 compile fixes after last batch of changes 2011-08-27 21:41:54 +02:00
Marius Kintel cb0fe366cf Use feature tests for cgal 2011-08-25 17:44:25 +02:00
Marius Kintel be63c6eeac Added modifier test cases for OpenCSG 2011-08-06 01:14:08 +02:00
Marius Kintel bdf1fda89b Handle highlight and background modifiers 2011-08-06 01:08:32 +02:00
Marius Kintel b9608dd2f8 Implemented rudimentary image compare for OpenCSG regression tests 2011-08-05 03:48:35 +02:00
Marius Kintel 0340d4e0a1 Improved view distance 2011-08-05 03:27:17 +02:00
Marius Kintel 38f50db0e0 Initially show object at an angle 2011-08-05 02:17:26 +02:00
Marius Kintel 1bd45c1891 Added some opencsgtest tests. Image compare code is still missing 2011-08-04 18:28:04 +02:00
Marius Kintel dbb0b3442b Write output PNG to stdout 2011-08-04 18:26:49 +02:00
Marius Kintel ef39e400f8 Reenabled csgtexttest and csgtermtest 2011-08-04 18:26:25 +02:00
Marius Kintel c0c56a0c30 Added hull() test 2011-08-04 18:26:04 +02:00
Marius Kintel 76263f3a8f Updated cache to new location 2011-08-04 17:01:49 +02:00
Marius Kintel 01388c9e62 Renderer->Evaluator rename 2011-08-04 05:11:48 +02:00
Marius Kintel cacfbd94b9 bug crept into the opencsg check 2011-08-02 23:47:52 +02:00
Marius Kintel 0846b4c2ea Minor updates. This works now, but needs a bugfix in OpenCSG 2011-08-02 01:43:29 +02:00
Marius Kintel 2b0035175d One step further on a Qt-free offscreen renderer 2011-07-31 03:12:27 +02:00
Marius Kintel c8d38858cb Moved dev binaries 2011-07-11 01:55:16 +02:00
Marius Kintel 0dd6c65aa1 Started adapting to reorganized testdata folders 2011-07-11 01:33:17 +02:00
Marius Kintel 75c06de2db expected file for include-test 2011-05-01 00:04:10 -04:00
Marius Kintel 1a9e3e7ca5 dxf-export expected file 2011-04-29 20:11:09 -04:00
Marius Kintel 40cf4dab4c expected file for hull-tests 2011-04-29 12:04:55 -04:00
Marius Kintel ffc2af4996 expected file for minkowski-tests 2011-04-29 12:02:33 -04:00
Marius Kintel 61ff6591ed Added expected files for hull and string-test 2011-04-29 11:55:36 -04:00
Marius Kintel 305558970a Added hull() 2011-04-29 11:17:48 -04:00
Marius Kintel 6c2fa831bd Support test cases with space in the filename 2011-04-29 11:07:10 -04:00
Marius Kintel d24b3cc84d Ported recent changes to master into the visitor branch 2011-04-12 20:35:44 +02:00
Marius Kintel f1daaed768 Working state, still requires a show() 2010-11-17 01:27:03 -05:00
Marius Kintel b1c78d03df set GLEW_DIR 2010-11-17 01:26:39 -05:00
Marius Kintel 2c4b2e5723 Prefer our glew over macports 2010-11-17 01:26:22 -05:00
Marius Kintel adf2c3b8fc find glew 2010-11-07 23:26:55 -05:00
Marius Kintel 955b19cd9e Initial hack of opencsgtest 2010-11-07 23:26:39 -05:00
Marius Kintel 99e466a7bc cosmetics 2010-11-07 22:54:41 -05:00
Marius Kintel ab90b38780 Value::QVector -> std::vector 2010-11-07 17:12:34 -05:00
Marius Kintel 6add106bfe Updated tests to latest internal API 2010-11-03 19:26:59 +01:00
Marius Kintel 363b1f1709 build tests in debug mode as default 2010-11-03 19:26:42 +01:00
Marius Kintel 455a8e22c1 Added cgaltest 2010-10-31 02:42:39 +02:00
Marius Kintel a248852f6c Make it possible to run the tests without and -expected file 2010-10-31 02:42:39 +02:00
Marius Kintel 728f4ac790 Moved more tests from test-code to tests 2010-10-31 02:42:39 +02:00
Marius Kintel 067bc0ab31 Added more tests 2010-10-31 02:42:39 +02:00
Marius Kintel 6536184759 tag the output dir to avoid collision with executable name 2010-10-31 02:42:39 +02:00
Marius Kintel aa71ac8e0d moved dumptest to tests dir to enable building from cmake 2010-10-31 02:42:39 +02:00
Marius Kintel 41b15c04c0 intersection_for now dumps correctly 2010-10-31 02:42:38 +02:00
Marius Kintel 8a0ddf4e5b CSGTermRenderer refactor: minor update 2010-10-31 02:42:38 +02:00
Marius Kintel d0390c41a2 Added AbstractNode::name(), changed CSGTextRenderer to use this instead of the rtti name 2010-10-31 02:42:38 +02:00
Marius Kintel d172c353a2 Test should fail if cmd is not found 2010-10-31 02:42:38 +02:00
Marius Kintel f2323c78b3 Better error output when cmd is not found 2010-10-31 02:42:38 +02:00
Marius Kintel 22b74585d8 Moved regression tests to tests directory 2010-10-31 02:42:38 +02:00
Marius Kintel 2b8bd3b4f3 Added support for specifying parameters to programs being tested 2010-10-31 02:42:38 +02:00
Marius Kintel 57153a38d2 Ignore tests without -expected files, refactored into function 2010-10-31 02:42:37 +02:00
Marius Kintel 69b1b6711d Support specifying output suffix 2010-10-31 02:42:37 +02:00
Marius Kintel dee4f85572 Added cgal tests to CTest 2010-10-31 02:42:37 +02:00
Marius Kintel a8064004b4 Output errors to stderr instead of a log file 2010-10-31 02:42:36 +02:00
Marius Kintel 8c028d95d0 Added csgtext tests 2010-10-31 02:42:36 +02:00
Marius Kintel 3000e9d5e8 Create expecteddir if necessary 2010-10-31 02:42:36 +02:00
Marius Kintel 9642787a27 Regression test system 2010-10-31 02:42:36 +02:00