Commit Graph

3089 Commits (f25ad73ea5fcc2abcf92d7cd1fbe44c072acd1f4)

Author SHA1 Message Date
Marius Kintel f25ad73ea5 Put back some stuff necessary for building on non-MSVC platforms for now 2013-08-19 23:27:30 -04:00
Marius Kintel 154c65dee2 Merge branch 'master' of git://github.com/ivoknutsel/openscad into ivoknutsel-master 2013-08-19 23:26:05 -04:00
Marius Kintel fe7fb45019 Support out-of-source use of testsuite. Fixes #456 2013-08-17 13:18:49 -04:00
Marius Kintel ea606f69fc Merge branch 'master' of github.com:openscad/openscad 2013-08-14 23:01:43 -04:00
Don Bright af7e8320e2 more migration from google-code to files.openscad.org 2013-08-13 22:24:03 -05:00
Don Bright 0dd0a262f9 switch from google-code file hosting to files.openscad.org 2013-08-13 22:00:48 -05:00
Don Bright 506ed4e693 first step of dealing with issue #455 2013-08-13 21:14:56 -05:00
Don Bright d2933590c2 fix #452 2013-08-11 09:54:04 -05:00
Don Bright 6900160b7d commit bugfix per report from chrysn to mailing list 8/8/13 2013-08-08 18:07:14 -05:00
Ivo Noorhoff 61e6178d1b In this commit i'll change just the Qt project, c and header files to get OpenSCAD
building and working on Windows 7 compiled with Visual Studio Express 2012.

A couple of things needed changing :
* MSVC 2012 has no trunc or round, i have added those to mathc99 and included mathc99 to the files needed.
The implementations were taken from boost.
* MSVC 2012 stl does now allow accessing out of bounds elements in std:vector as an array, so "chain->objects[i]" will
fail in "OpenCSGRenderer::renderCSGChain". Whatever the platform, it will me a good idea to change this
code to something that does not trigger undefined behavior.
* MSVC 2012 cannot figure out the types involved in "if (file_size ==  80 + 4 + 50*facenum) {", i have added
a cast to force it to "if (file_size ==  static_cast<std::streamoff>(80 + 4 + 50*facenum)) {".

The next round would be regression testing and debugging and possibly more changes to the OpenSCAD main code.

The round after that would be changing the .pro and .pri files to create correct visual studio solutions.
2013-07-28 13:42:35 +02:00
Marius Kintel 70247b7545 Ported use of check_output to Python-2.6 2013-07-02 10:59:59 +02:00
Marius Kintel c3e7d4bf03 dumptest now supports the root modifier - updated test results 2013-07-02 09:33:24 +02:00
Marius Kintel 5a43874897 cgalstlsanitytest moved 2013-07-02 00:28:56 -04: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
chrysn d532a17cb8 acknowledge new output formats in release notes 2013-06-26 15:28:51 +02:00
chrysn aaa781b12e document the new commands 2013-06-26 15:28:51 +02:00
chrysn 177e4676a4 document the testing migration to the main binary 2013-06-26 15:28:50 +02:00
Marius Kintel 1b7cc41a7f Short circuit boolean logic - fixes #411 2013-06-25 23:39:02 -04:00
Marius Kintel d9b3f7b52b Test case for #399 2013-06-25 23:17:51 -04:00
chrysn 077332ff5c normalize -nan and -0 in all output modes
having a stable output is not only relevant in testing, and with the
main binary being used for more tests, having those normalizations takes
load off the preparing scripts tests/{dumptest,echotest}
2013-06-25 14:26:28 +02: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 b7170fe349 add .term output for CSG term export 2013-06-25 14:25:03 +02:00
chrysn 0eb64d8f7a ctest infrastructure for native .term tests 2013-06-25 13:41:49 +02:00
chrysn 3460564880 renamed csgtermtest to .term 2013-06-25 13:41:49 +02:00
chrysn 1d17e623db make test_pretty_print.py work with .csg and .ast too
file results that were neither txt nor png used to be ignored silently;
now, unknown extensions produce errors, and csg and ast are known.
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 770cb09f5f trim precision from the echo tests
as it was done with dumptest before
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
chrysn 84857ac157 modify root modifier example now that the test program respects the root modifier
as the dumptests are now run from a full openscad, the root modifier is
respected by the test program too; reflectin that in the unit test
2013-06-25 13:41:48 +02:00
chrysn 850058eb69 trim precision in dumptest regressions
in order for them to work against openscad's .csg output, the number of
decimal places was reduced.
2013-06-25 13:41:48 +02:00
chrysn 00e29e9099 changed group headers to empty group headers
this became necessary because the batch editing in the last commit
didn't respect that an empty group is not group() { } but group();
2013-06-25 13:41:47 +02:00
chrysn 400248d566 renamed dumptest files to .csg and added group headers 2013-06-25 13:41:47 +02:00
Marius Kintel a3cd019494 Removed a bunch of less useful tests 2013-06-23 01:56:04 -04:00
Marius Kintel 140189d470 renamed to setenv_mac-* 2013-06-23 00:13:43 -04:00
Don Bright b715e580f7 check OPENSCAD_LIBRARIES first 2013-06-22 08:29:42 -05:00
Marius Kintel ec867349ff Close file as soon as possible to avoid potential readlocks being kept too long. Might be enough for #415 2013-06-21 01:36:08 -04:00
Marius Kintel 2da488800c Merge remote-tracking branch 'origin/epec-kernel' 2013-06-20 00:27:23 -04:00
Marius Kintel cf882d2ea3 gcc and clang profiles 2013-06-20 00:13:43 -04:00
Marius Kintel 1c719371cc Merge remote-tracking branch 'origin/epec-kernel' 2013-06-20 00:11:16 -04:00
Marius Kintel 10032341e2 Default to clang for Mac OS X 10.7+ 2013-06-20 00:05:09 -04:00
Marius Kintel bac587363a Merge pull request #413 from hroncok/patch-2
Added missing include stdint.h to work with gcc 4.8.1
2013-06-19 11:11:21 -07:00
Miro Hrončok 7870d9c15a Added missing include stdint.h to work with gcc 4.8.1
Without this include, this was not possible to build with gcc 4.8.1:

Build log (without this commit): http://kojipkgs.fedoraproject.org//work/tasks/1370/5521370/build.log
2013-06-19 20:09:44 +02:00
Marius Kintel c75d195552 clang fixes 2013-06-19 03:48:50 -04:00
Marius Kintel b75826d298 Leftover from previous merge 2013-06-19 03:48:16 -04:00