diff options
author | Brad Pitcher <bradpitcher@gmail.com> | 2011-11-01 17:15:35 (GMT) |
---|---|---|
committer | Brad Pitcher <bradpitcher@gmail.com> | 2011-11-01 17:15:35 (GMT) |
commit | e2caf3726d68ff1fef63113519049abffc0563af (patch) | |
tree | 6558c6f03ccc21e7138d23861f80e8d97b09e60e /doc/testing.txt | |
parent | 7541854212d6c1223e015faf55a6ca0657a1c184 (diff) | |
parent | cb56f700b1b0f4ae589da62a5fd1d4e368deb604 (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 |