diff options
author | chrysn <chrysn@fsfe.org> | 2013-06-25 11:28:30 (GMT) |
---|---|---|
committer | chrysn <chrysn@fsfe.org> | 2013-06-26 13:28:50 (GMT) |
commit | 177e4676a40c891e47c2af551b95a3f587f6431b (patch) | |
tree | b327884dcedb3518aeef63235bb43dc3dc09c927 /doc/testing.txt | |
parent | 077332ff5cb8a41de2922a6f1be00597b30a02dd (diff) |
document the testing migration to the main binary
Diffstat (limited to 'doc/testing.txt')
-rw-r--r-- | doc/testing.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/testing.txt b/doc/testing.txt index 0b14903..17847c6 100644 --- a/doc/testing.txt +++ b/doc/testing.txt @@ -64,7 +64,47 @@ This is almost the same as adding a new regression test: 4) run the test normally and verify that it passes: $ ctest -C Examples -R exampleNNN +Migration away from dedicated regression tests: +----------------------------------------------- +As the main OpenSCAD binary gained the capability to output PNG renderings, +the necessity for dedicated test binaries went away; for many test, OpenSCAD +is now directly called, resulting in better test coverage and less code to +maintain. + +So far, the following tests have been fully converted to use the main binary: + +* moduledumptest +* csgtermtest +* cgalpngtest +* opencsgtest + +Two tests still need an intermediate script that mangles away timestamps and +near-zero floating point numbers: + +* dumptest +* echotest + +Some tests are yet to be converted: + +* csgtexttest -- verify whether this is not redundant with dumptest +* throwntogethertest -- should be a .png output mode +* cgalstlsanitytest -- could probably be replaced by a shell script grepping + for nan and possibly counting faces + +These look like tests, but are not actually in use: + +* modulecachetest +* cgalcachetest + +In the course of migration, the possibilities of using the OPENSCAD_TESTING +compile time flag go away; that flag used to strip timestamps out of files, +to unify float output, and to tweak the file inclusion paths. With that flag +unused, we get better coverage of the primary code paths, at the cost of +having to do some normalization in the unit testing process (thus the dumptest +and echo test scripts). Especially, having a nonstandard MCAD library in the +user include path can now break things -- but so can having misbehaving +programs in your PATH. Troubleshooting: ------------------------------ |