Skip to content

Commit

Permalink
Added make-no-x options (experimental) for running unit tests on a he…
Browse files Browse the repository at this point in the history
…adless server.
  • Loading branch information
timlinux committed Apr 8, 2012
1 parent aa6d5b3 commit d1a11be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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)


Expand Down

0 comments on commit d1a11be

Please sign in to comment.