mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Disable non-hermetic tests by default.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=955319.
This commit is contained in:
parent
f3c6fc6771
commit
de3c21b5b7
|
@ -17,6 +17,7 @@ cmake -B_build -H. -GNinja \
|
|||
-DCMAKE_INSTALL_PREFIX:PATH="$PWD/_install" \
|
||||
-DMIN_LOGGER_LEVEL=TRACE \
|
||||
-DMUST_BUILD_TOXAV=ON \
|
||||
-DNON_HERMETIC_TESTS=ON \
|
||||
-DSTRICT_ABI=ON \
|
||||
-DTEST_TIMEOUT_SECONDS=120 \
|
||||
-DUSE_IPV6=OFF \
|
||||
|
|
|
@ -9,7 +9,7 @@ add_flag -Werror
|
|||
add_flag -fdiagnostics-color=always
|
||||
add_flag -fno-omit-frame-pointer
|
||||
add_flag -fsanitize=thread
|
||||
cmake -H. -B_build -GNinja \
|
||||
cmake -B_build -H. -GNinja \
|
||||
-DCMAKE_C_FLAGS="$C_FLAGS" \
|
||||
-DCMAKE_CXX_FLAGS="$CXX_FLAGS" \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="$LD_FLAGS" \
|
||||
|
@ -17,6 +17,7 @@ cmake -H. -B_build -GNinja \
|
|||
-DCMAKE_INSTALL_PREFIX:PATH="$PWD/_install" \
|
||||
-DMIN_LOGGER_LEVEL=TRACE \
|
||||
-DMUST_BUILD_TOXAV=ON \
|
||||
-DNON_HERMETIC_TESTS=ON \
|
||||
-DSTRICT_ABI=ON \
|
||||
-DTEST_TIMEOUT_SECONDS=120 \
|
||||
-DUSE_IPV6=OFF \
|
||||
|
|
|
@ -57,6 +57,7 @@ travis_script() {
|
|||
-DCMAKE_INSTALL_PREFIX:PATH="_install" \
|
||||
-DMIN_LOGGER_LEVEL=TRACE \
|
||||
-DMUST_BUILD_TOXAV=ON \
|
||||
-DNON_HERMETIC_TESTS=ON \
|
||||
-DSTRICT_ABI=ON \
|
||||
-DTEST_TIMEOUT_SECONDS=300 \
|
||||
-DUSE_IPV6=OFF \
|
||||
|
|
|
@ -77,6 +77,7 @@ travis_script() {
|
|||
-DCMAKE_INSTALL_PREFIX:PATH="$PWD/_install" \
|
||||
-DMIN_LOGGER_LEVEL=TRACE \
|
||||
-DMUST_BUILD_TOXAV=ON \
|
||||
-DNON_HERMETIC_TESTS=ON \
|
||||
-DSTRICT_ABI=ON \
|
||||
-DTEST_TIMEOUT_SECONDS=120 \
|
||||
-DUSE_IPV6=OFF \
|
||||
|
|
|
@ -30,6 +30,7 @@ travis_script() {
|
|||
-DCMAKE_INSTALL_PREFIX:PATH="$PWD/_install" \
|
||||
-DMIN_LOGGER_LEVEL=TRACE \
|
||||
-DMUST_BUILD_TOXAV=ON \
|
||||
-DNON_HERMETIC_TESTS=ON \
|
||||
-DTEST_TIMEOUT_SECONDS=120 \
|
||||
-DUSE_IPV6=OFF \
|
||||
-DAUTOTEST=ON
|
||||
|
|
|
@ -110,6 +110,8 @@ if(USE_STDERR_LOGGER)
|
|||
add_definitions(-DUSE_STDERR_LOGGER=1)
|
||||
endif()
|
||||
|
||||
option(NON_HERMETIC_TESTS "Whether to build and run tests that depend on an internet connection" OFF)
|
||||
|
||||
option(BUILD_TOXAV "Whether to build the tox AV library" ON)
|
||||
option(MUST_BUILD_TOXAV "Fail the build if toxav cannot be built" OFF)
|
||||
|
||||
|
@ -405,7 +407,6 @@ function(auto_test target)
|
|||
endfunction()
|
||||
|
||||
auto_test(TCP)
|
||||
auto_test(bootstrap)
|
||||
auto_test(conference)
|
||||
auto_test(conference_double_invite)
|
||||
auto_test(conference_invite_merge)
|
||||
|
@ -436,7 +437,6 @@ auto_test(send_message)
|
|||
auto_test(set_name)
|
||||
auto_test(set_status_message)
|
||||
auto_test(skeleton)
|
||||
auto_test(tcp_relay)
|
||||
auto_test(tox_many)
|
||||
auto_test(tox_many_tcp)
|
||||
auto_test(tox_one)
|
||||
|
@ -445,6 +445,11 @@ auto_test(typing)
|
|||
auto_test(version)
|
||||
auto_test(save_compatibility)
|
||||
|
||||
if(NON_HERMETIC_TESTS)
|
||||
auto_test(bootstrap)
|
||||
auto_test(tcp_relay)
|
||||
endif()
|
||||
|
||||
if(BUILD_TOXAV)
|
||||
auto_test(conference_av)
|
||||
auto_test(toxav_basic)
|
||||
|
|
Loading…
Reference in New Issue
Block a user