summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/testing.txt30
1 files changed, 19 insertions, 11 deletions
diff --git a/doc/testing.txt b/doc/testing.txt
index 403ef4a..04768cb 100644
--- a/doc/testing.txt
+++ b/doc/testing.txt
@@ -33,7 +33,7 @@ $ ctest -C <configs> Adds extended tests belonging to configs.
Examples - test all examples
All - test everything
-Adding a new regression test:
+Adding a new regression test:
------------------------------
1) create a test file at an appropriate location under testdata/
@@ -58,15 +58,18 @@ $ DISPLAY=:5 ctest
1. Trouble finding libraries
To help CMAKE find eigen2, OpenCSG, CGAL, Boost, and GLEW, you can use
- the -D option. See CMakeLists.txt for more information. Examples:
+ environment variables, just like for the main qmake & openscad.pro. Examples:
- cmake . -DOPENCSG_DIR=~/OpenCSG-1.3.2
- cmake . -DCGAL_DIR=c:\CGAL-3.7 -DBOOST_DIR=c:\boost_1_46_0
+ OPENCSGDIR=~/OpenCSG-1.3.2 EIGEN2DIR=~/eigen2 cmake .
+
+ Valid variables are as follows (see CMakeLists.txt for more info):
+
+ BOOSTDIR, CGALDIR, EIGEN2DIR, GLEWDIR, OPENCSGDIR, MACOSX_DEPLOY_DIR
2. Logs
Logs of test runs are found in tests/build/Testing/Temporary
-Pretty-printed html output is in a subdir of tests/build/Testing/Temporary
+Pretty-printed index.html is in a subdir of tests/build/Testing/Temporary
Expected results are found in tests/regression/*
Actual results are found in tests/build/testname-output/*
@@ -74,17 +77,22 @@ Actual results are found in tests/build/testname-output/*
Cross-compiling of tests has not been automated nor tested
-4. Testing images takes forever, they fail, and it says 'return -11'
+4. Image-based tests takes a long time, they fail, and it says 'return -11'
-Imagemagick may have crashed. You can try using the alternate comparison
+Imagemagick may have crashed. You can try using the alternate IM comparator
based on Normalized Cross Correlation. Pass -DCOMPARATOR=ncc to cmake
5. Testing images fails with 'morphology' not found for ImageMagick
-Your version of imagemagick is old. Upgrade, or pass -DCOMPARATOR=old to cmake.
-The comparison will be of lowered reliability.
+Your version of imagemagick is old. Upgrade, or pass -DCOMPARATOR=old to
+cmake. The comparison will be of lowered reliability.
-6. Many cgalpngtests are failing with weird assertion errors.
+6. Unexplained or bizarre errors.
-Edit CMakeCache.txt and replace '-DNDEBUG' or '/D NDEBUG' with blank spaces
+This can happen on dynamic-library systems (linux) where you try to use
+your own version of a library while the system still has another version
+under the system paths. You can diagnose this by looking at your cmake
+log as well as your sysinfo.txt file, as well as running 'ldd' against
+your binaries, to make sure that the proper versions of libraries are
+getting compiled and linked with the test binaries.
contact: Jan Huwald // Impressum