Skip to content

Commit d1a11be

Browse files
committed
Added make-no-x options (experimental) for running unit tests on a headless server.
1 parent aa6d5b3 commit d1a11be

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ IF (ENABLE_TESTS)
239239
ENABLE_TESTING()
240240
# Define "make check" as alias for "make test" - thanks geos :-)
241241
add_custom_target(check COMMAND ctest --output-on-failure)
242+
# For server side testing we have no X, we can use xfvb as a fake x
243+
# sudo apt-get install xfvb
244+
add_custom_target(check-no-x COMMAND xvfb-run --server-args="-screen 10,1024x768x24" ctest --output-on-failure)
242245
ENDIF (ENABLE_TESTS)
243246

244247

0 commit comments

Comments
 (0)