summaryrefslogtreecommitdiff
path: root/tests/CTestCustom.template
diff options
context:
space:
mode:
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