From d1a11bec96db0fee744529a98023e7be252222c4 Mon Sep 17 00:00:00 2001 From: Tim Sutton Date: Mon, 9 Apr 2012 00:52:58 +0200 Subject: [PATCH] Added make-no-x options (experimental) for running unit tests on a headless server. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 474ac859d9d3..0251c0d6013a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,6 +239,9 @@ IF (ENABLE_TESTS) ENABLE_TESTING() # Define "make check" as alias for "make test" - thanks geos :-) add_custom_target(check COMMAND ctest --output-on-failure) + # For server side testing we have no X, we can use xfvb as a fake x + # sudo apt-get install xfvb + add_custom_target(check-no-x COMMAND xvfb-run --server-args="-screen 10,1024x768x24" ctest --output-on-failure) ENDIF (ENABLE_TESTS)