diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2011-11-27 04:21:38 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2011-11-27 04:21:38 (GMT) |
commit | 610ab20ddba6d07e9b6e0b7565a44913854e467b (patch) | |
tree | 81c75e9ce9b68490bc5a81293290b96bb49d9510 /doc | |
parent | 2376814f2c4dd6e34a765ca37275b136785b26fd (diff) | |
parent | 04c340b35d8809b595ebb3ce53b7a00313d00a9b (diff) |
Merge remote branch 'upstream/master' into cakebaby
Conflicts:
doc/testing.txt
tests/CMakeLists.txt
tests/system-gl.cc
tests/system-gl.h
Diffstat (limited to 'doc')
-rw-r--r-- | doc/testing.txt | 59 |
1 files changed, 33 insertions, 26 deletions
diff --git a/doc/testing.txt b/doc/testing.txt index f90aca8..61f6d75 100644 --- a/doc/testing.txt +++ b/doc/testing.txt @@ -1,34 +1,48 @@ Running regression tests: ------------------------- -Prerequisites: cmake, python +Prerequisites: cmake, python, OpenCSG with FBO patch from ../patches applied -cd tests -mkdir build -cd build -cmake .. -make -make test +A) Building test environment -Running on Windows: +Linux, Mac: +$ cd tests +$ cmake . +$ make + +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 +$ cd tests +$ cmake . -DCMAKE_BUILD_TYPE=Release +$ sed -i s/\/MD/\/MT/ CMakeCache.txt +$ cmake . +$ nmake -f Makefile + +B) Running tests + +Easy version: +$ make test -Running on headless (no X) unix servers: +Windows: +$ nmake -f Makefile test -Xvnc :5 -screen 0 800x600x24 & -DISPLAY=:5 make test +Headless unix servers (no X11): +$ Xvfb :5 -screen 0 800x600x24 & +$ DISPLAY=:5 make test + +Partial or extended test runs: +$ ctest Runs tests enabled by default +$ ctest -R <regex> Runs only matching tests, e.g. ctest -R dxf +$ ctest -C <configs> Adds extended tests belonging to configs. + Valid configs: + Default - Run default tests + Heavy - Run more time consuming tests (> ~10 seconds) + Examples - test all examples + All - test everything Adding a new regression test: ------------------------------ @@ -47,13 +61,6 @@ Adding a new regression test: 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/* |