Skip to content

Commit eddf23c

Browse files
committedJun 6, 2017
Make the check rule use xvfb-run, drop check-no-x
I see no reason for anyone wanting to see popping windows during a `make check` run. Closes #12172.
1 parent 80911c6 commit eddf23c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed
 

‎CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,16 +318,14 @@ ADD_DEFINITIONS(-DENABLE_TESTS)
318318
ENABLE_TESTING()
319319
# Adds some testing specific build targets e.g. make Experimental
320320
INCLUDE(Dart)
321-
# Define "make check" as alias for "make test" - thanks geos :-)
322-
add_custom_target(check COMMAND ctest --output-on-failure)
323321
# Additional test configuration options e.g. max upload size of test report
324322
CONFIGURE_FILE(
325323
"${CMAKE_SOURCE_DIR}/cmake_templates/CTestCustom.cmake.in"
326324
"${CMAKE_BINARY_DIR}/CTestCustom.cmake"
327325
IMMEDIATE @ONLY)
328326
# For server side testing we have no X, we can use xfvb as a fake x
329327
# sudo apt-get install xfvb
330-
add_custom_target(check-no-x COMMAND xvfb-run --server-args=-screen\ 10\ 1024x768x24 ctest --output-on-failure)
328+
add_custom_target(check COMMAND xvfb-run --server-args=-screen\ 10\ 1024x768x24 ctest --output-on-failure)
331329
ENDIF(ENABLE_TESTS)
332330

333331
IF (WITH_CORE)

‎tests/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Make sure that you have enabled building of tests in CMake.
99
# Run tests
1010

1111
You can run all tests using `make check`.
12+
Note you will need `xvfb-run` for that (sudo apt-get install xfvb).
1213

1314
Individual tests can be run using `ctest`.
1415

0 commit comments

Comments
 (0)
Please sign in to comment.