diff options
author | Brad Pitcher <bradpitcher@gmail.com> | 2011-11-01 18:29:29 (GMT) |
---|---|---|
committer | Brad Pitcher <bradpitcher@gmail.com> | 2011-11-01 18:29:29 (GMT) |
commit | 0eacddfd8148f14ee0ddfe2eb66b82774c88afbe (patch) | |
tree | 6982ea59564090ea858d12d86d3699e83887f1f9 /doc/testing.txt | |
parent | ea7e4988d44249946b620d5973b230cf1a0606ca (diff) | |
parent | e2caf3726d68ff1fef63113519049abffc0563af (diff) |
merge master
Diffstat (limited to 'doc/testing.txt')
-rw-r--r-- | doc/testing.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/testing.txt b/doc/testing.txt index b64d5a4..c5fb243 100644 --- a/doc/testing.txt +++ b/doc/testing.txt @@ -10,6 +10,20 @@ cmake .. make make test +Windows: + +First, get a normal build working by following instructions at +http://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Building_on_Windows +Then, from the QT command prompt: + +cd tests +mkdir build +cd build +cmake .. -DCMAKE_BUILD_TYPE=Release +sed -i s/\/MD/\/MT/ CMakeCache.txt +cmake .. +nmake -f Makefile +nmake -f Makefile test Adding a new regression test: ------------------------------ @@ -27,3 +41,21 @@ Adding a new regression test: Note that test files which don't have an *-expected.<suffix> file will be ignored for the test apps in question. + +Troubleshooting a failed test: +------------------------------ + +You can run a single test by passing the test name to ctest: + $ ctest -R throwntogethertest_sphere + +You can run a series of tests by passing part of a name to ctest: + $ ctest -R cgalpng # runs all cgalpng tests + $ ctest -R sphere # runs all sphere tests + +Logs of test runs are found in tests/build/Testing/Temporary +Expected results are found in tests/regression/* +Actual results are found in tests/build/testname-output/* + +You can also compile a single test program: + + $ make cgalpngtest |