summaryrefslogtreecommitdiff
path: root/tests/CTestCustom.template
diff options
context:
space:
mode:
authordonbright <hugh.m.bright@gmail.com>2013-03-05 23:47:14 (GMT)
committerdonbright <hugh.m.bright@gmail.com>2013-03-05 23:47:14 (GMT)
commit42f21c3a0850083d245aa3ac346a53e876f0679e (patch)
treefacf41750e0fe27cc4cdaf352c9c8e687011d103 /tests/CTestCustom.template
parent422c668dcb538f181683ae51305bf8d3404f48d6 (diff)
parent4734172c3a16cc06b09e4d2131aa8e380bd0f226 (diff)
Merge pull request #288 from openscad/issue11_2
Issue11 2
Diffstat (limited to 'tests/CTestCustom.template')
-rw-r--r--tests/CTestCustom.template14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/CTestCustom.template b/tests/CTestCustom.template
index 338f4b6..fd6ba8b 100644
--- a/tests/CTestCustom.template
+++ b/tests/CTestCustom.template
@@ -1,5 +1,7 @@
# __header__
#
+# Template to build a CTestCustom.cmake file in the build directory.
+#
# This template enables ctest to do things before and after the test runs.
# In our case, 1. Setup a virtual framebuffer, 2. pretty-print results
#
@@ -7,20 +9,18 @@
# words (__word__) are replaced with the cmake build dir/etc, at the time that
# cmake itself is run. Typically these are signified by two underscores (__)
# before and after the word in smallcase.
-#
-# The file then becomes CTestCustom.cmake inside the cmake build
-# directory. It is 'run' at the time that ctest is run.
-
-# Part 0. X11 and Virtual Framebuffer, for Linux/BSD. This is not used by
-# Windows or Mac because they have alternate means of accessing OpenGL.
+# Part 0. X11 and Virtual Framebuffer, for headless Linux/BSD systems.
+# This is not used by Windows or Mac because they have alternate means
+# of accessing OpenGL.
set(debug_openscad_template 0)
if( __cmake_system_name__ MATCHES "Linux|BSD")
set(DISPLAY_ENV $ENV{DISPLAY})
if(DISPLAY_ENV)
- message("X11 DISPLAY environment variable found. Assuming framebuffer exists at DISPLAY=${DISPLAY_ENV}")
+ message("X11 DISPLAY environment variable found.")
+ message("Assuming framebuffer exists at DISPLAY=${DISPLAY_ENV}")
else()
message("X11 DISPLAY environment variable not found. Calling virtualfb.sh")
execute_process(
contact: Jan Huwald // Impressum