summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/testing.txt6
-rw-r--r--openscad.pro9
-rw-r--r--tests/CMakeLists.txt1
-rwxr-xr-xtests/test_pretty_print.py12
4 files changed, 22 insertions, 6 deletions
diff --git a/doc/testing.txt b/doc/testing.txt
index 67d14ba..4623a96 100644
--- a/doc/testing.txt
+++ b/doc/testing.txt
@@ -96,3 +96,9 @@ 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.
+7. Other issues
+
+The OpenSCAD User Manual has a section on buildling. Check there for updates:
+
+http://en.wikibooks.org/wiki/OpenSCAD_User_Manual
+
diff --git a/openscad.pro b/openscad.pro
index e38251a..ac49807 100644
--- a/openscad.pro
+++ b/openscad.pro
@@ -8,6 +8,10 @@
# OPENCSGDIR
# OPENSCAD_LIBRARIES
#
+# Please see the 'Buildling' sections of the OpenSCAD user manual
+# for updated tips & workarounds.
+#
+# http://en.wikibooks.org/wiki/OpenSCAD_User_Manual
isEmpty(QT_VERSION) {
error("Please use qmake for Qt 4 (probably qmake-qt4)")
@@ -82,6 +86,11 @@ linux*:exists(/usr/lib64/libGLU*)|linux*:exists(/usr/lib/libGLU*) {
LIBS += -lGLU
}
+# See Dec 2011 OpenSCAD mailing list, re: CGAL/GCC bugs.
+*g++* {
+ QMAKE_CXXFLAGS *= -fno-strict-aliasing
+}
+
CONFIG(mingw-cross-env) {
include(mingw-cross-env.pri)
}
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 986076e..8f3f81f 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -13,6 +13,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
# Build debug build as default
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-strict-aliasing")
endif()
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index 53fcc37..7407b15 100755
--- a/tests/test_pretty_print.py
+++ b/tests/test_pretty_print.py
@@ -249,8 +249,8 @@ TESTLOG
passed_tests = filter(lambda x: x.passed, tests)
failed_tests = filter(lambda x: not x.passed, tests)
- tests_to_report = tests
- if failed_only: tests_to_report = failed_tests
+ tests_to_report = failed_tests
+ if include_passed: tests_to_report = tests
try: percent = str(int(100.0*len(passed_tests) / len(tests)))
except ZeroDivisionError: percent = 'n/a'
@@ -317,8 +317,8 @@ def tohtml(wiki_rootpath, startdate, tests, enddate, sysinfo, sysid, makefiles):
try: percent = str(int(100.0*len(passed_tests) / len(tests)))
except ZeroDivisionError: percent = 'n/a'
- tests_to_report = tests
- if failed_only: tests_to_report = failed_tests
+ tests_to_report = failed_tests
+ if include_passed: tests_to_report = tests
s=''
@@ -497,7 +497,7 @@ maxretry = 10
if bool(os.getenv("TEST_GENERATE")): sys.exit(0)
-failed_only = False
-if '--failed-only' in sys.argv: failed_only = True
+include_passed = False
+if '--include-passed' in sys.argv: include_passed = True
main()
contact: Jan Huwald // Impressum