diff options
-rw-r--r-- | CMakeLists.txt | 13 | ||||
-rw-r--r-- | other/travis/env-linux.sh | 1 | ||||
-rwxr-xr-x | other/travis/toxcore-script | 2 |
3 files changed, 2 insertions, 14 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7147d07b..875d0a28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -450,19 +450,6 @@ unit_test(toxcore util) | |||
450 | 450 | ||
451 | set(TEST_TIMEOUT_SECONDS "" CACHE STRING "Limit runtime of each test to the number of seconds specified") | 451 | set(TEST_TIMEOUT_SECONDS "" CACHE STRING "Limit runtime of each test to the number of seconds specified") |
452 | 452 | ||
453 | option(FORMAT_TEST "Require the format_test to be executed; fail cmake if it can't" OFF) | ||
454 | |||
455 | if(ASTYLE) | ||
456 | add_test( | ||
457 | NAME format_test | ||
458 | COMMAND ${toxcore_SOURCE_DIR}/other/astyle/format-source | ||
459 | "${toxcore_SOURCE_DIR}" | ||
460 | "${ASTYLE}") | ||
461 | set_tests_properties(format_test PROPERTIES TIMEOUT "${TEST_TIMEOUT_SECONDS}") | ||
462 | elseif(FORMAT_TEST) | ||
463 | message(FATAL_ERROR "format_test can not be run, because ASTYLE (${ASTYLE}) could not be found") | ||
464 | endif() | ||
465 | |||
466 | if(ANDROID_CPU_FEATURES) | 453 | if(ANDROID_CPU_FEATURES) |
467 | # We need to compile cpufeatures.c as many times as there are executables, | 454 | # We need to compile cpufeatures.c as many times as there are executables, |
468 | # because libvpx doesn't include it although it depends on it. We can't get | 455 | # because libvpx doesn't include it although it depends on it. We can't get |
diff --git a/other/travis/env-linux.sh b/other/travis/env-linux.sh index b3292098..9f25e911 100644 --- a/other/travis/env-linux.sh +++ b/other/travis/env-linux.sh | |||
@@ -4,7 +4,6 @@ export PATH=/opt/ghc/7.8.4/bin:/opt/cabal/1.18/bin:/opt/alex/3.1.7/bin:/opt/happ | |||
4 | export PATH=$HOME/.cabal/bin:$PATH | 4 | export PATH=$HOME/.cabal/bin:$PATH |
5 | 5 | ||
6 | CMAKE=cmake | 6 | CMAKE=cmake |
7 | CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DFORMAT_TEST=ON" | ||
8 | # Asan is disabled because it's currently broken on Travis. | 7 | # Asan is disabled because it's currently broken on Travis. |
9 | # See https://github.com/travis-ci/travis-ci/issues/9033. | 8 | # See https://github.com/travis-ci/travis-ci/issues/9033. |
10 | CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DASAN=OFF" | 9 | CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DASAN=OFF" |
diff --git a/other/travis/toxcore-script b/other/travis/toxcore-script index 83ca8c04..1c6bea75 100755 --- a/other/travis/toxcore-script +++ b/other/travis/toxcore-script | |||
@@ -43,3 +43,5 @@ RUN $MAKE -C$BUILD_DIR -j$NPROC -k install | |||
43 | if $RUN_TESTS; then | 43 | if $RUN_TESTS; then |
44 | TESTS $MAX_TEST_RETRIES $MAKE -C$BUILD_DIR -j$NPROC test ARGS="-j50 --rerun-failed" CTEST_OUTPUT_ON_FAILURE="$CTEST_OUTPUT_ON_FAILURE" | 44 | TESTS $MAX_TEST_RETRIES $MAKE -C$BUILD_DIR -j$NPROC test ARGS="-j50 --rerun-failed" CTEST_OUTPUT_ON_FAILURE="$CTEST_OUTPUT_ON_FAILURE" |
45 | fi | 45 | fi |
46 | |||
47 | other/astyle/format-source . $ASTYLE | ||