summaryrefslogtreecommitdiff
path: root/doc/testing.txt
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-12-31 23:02:34 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-12-31 23:02:34 (GMT)
commit3f1cb83f4b267db351842ed2a9e2640fac3045db (patch)
tree4a99e11d8eca6aed33e32fe5933332ae94f246fe /doc/testing.txt
parent3d686118bbced68f9a9af69339e2998b28139756 (diff)
various tweaks for cross compiling tests under mingw
Diffstat (limited to 'doc/testing.txt')
-rw-r--r--doc/testing.txt19
1 files changed, 10 insertions, 9 deletions
diff --git a/doc/testing.txt b/doc/testing.txt
index c0edc6f..0ec5649 100644
--- a/doc/testing.txt
+++ b/doc/testing.txt
@@ -24,11 +24,16 @@ Then, from the QT command prompt:
Cross compiling Linux->Windows:
+Additional prerequisities: wine, mingw-cross-env
+
+Note: CTest harness will only run under Wine under *nix, not under Win32.
+
Follow the instructions for cross-compiling with qmake at
-http://en.wikibooks.org/wiki/OpenSCAD_User_Manual
+http://en.wikibooks.org/wiki/OpenSCAD_User_Manual , especially the part
+about including the cross-compiler in your PATH. Then:
$ cd tests
-$ cmake . -DMINGW_CROSS_ENV_DIR=<mingw dir> -DCMAKE_TOOLCHAIN_FILE=CMingw-env-cross.cmake
+$ cmake . -DMINGW_CROSS_ENV_DIR=<mingw-dir> -DCMAKE_TOOLCHAIN_FILE=CMingw-env-cross.cmake
$ make
B) Running tests
@@ -89,11 +94,7 @@ A 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/*
-3. Cross-compiling
-
-Cross-compiling of tests has not been automated nor tested
-
-4. Image-based tests takes a long time, they fail, and the log says 'return -11'
+3. Image-based tests takes a long time, they fail, and the log says 'return -11'
Imagemagick may have crashed while comparing the expected images to the
test-run generated (actual) images. You can try using the alternate
@@ -101,12 +102,12 @@ ImageMagick comparison method by by erasing CMakeCache, and re-running
cmake with -DCOMPARATOR=ncc. This will enable the Normalized Cross
Comparison method.
-5. Testing images fails with 'morphology not found" for ImageMagick in the log
+4. Testing images fails with 'morphology not found" for ImageMagick in the log
Your version of imagemagick is old. Upgrade, or pass -DCOMPARATOR=old to
cmake. The comparison will be of lowered reliability.
-6. Other issues
+5. Other issues
The OpenSCAD User Manual has a section on buildling. Please check there
for updates:
contact: Jan Huwald // Impressum