summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt13
-rw-r--r--other/travis/env-linux.sh1
-rwxr-xr-xother/travis/toxcore-script2
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
451set(TEST_TIMEOUT_SECONDS "" CACHE STRING "Limit runtime of each test to the number of seconds specified") 451set(TEST_TIMEOUT_SECONDS "" CACHE STRING "Limit runtime of each test to the number of seconds specified")
452 452
453option(FORMAT_TEST "Require the format_test to be executed; fail cmake if it can't" OFF)
454
455if(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}")
462elseif(FORMAT_TEST)
463 message(FATAL_ERROR "format_test can not be run, because ASTYLE (${ASTYLE}) could not be found")
464endif()
465
466if(ANDROID_CPU_FEATURES) 453if(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
4export PATH=$HOME/.cabal/bin:$PATH 4export PATH=$HOME/.cabal/bin:$PATH
5 5
6CMAKE=cmake 6CMAKE=cmake
7CMAKE_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.
10CMAKE_EXTRA_FLAGS="$CMAKE_EXTRA_FLAGS -DASAN=OFF" 9CMAKE_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
43if $RUN_TESTS; then 43if $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"
45fi 45fi
46
47other/astyle/format-source . $ASTYLE