Run all tests in parallel on Travis.

The first round some tests will fail and others will segfault. The second
round, still some will fail, but the third round it might pass. At some
point, tests will pass.

The reason for this is that tests assume a lot about which ports they are
given, and also toxcore's default port range has too few ports to run all
tests in parallel. These issues will be fixed in future PRs.
This commit is contained in:
iphydf 2018-02-18 21:44:58 +00:00
parent 3dc8cf6df8
commit 9d58e0aa0a
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -40,5 +40,5 @@ export CTEST_OUTPUT_ON_FAILURE=1
RUN $MAKE -C$BUILD_DIR -j$NPROC -k install
if $RUN_TESTS; then
TESTS $MAX_TEST_RETRIES $MAKE -C$BUILD_DIR -j$NPROC test ARGS="--rerun-failed" CTEST_OUTPUT_ON_FAILURE="$CTEST_OUTPUT_ON_FAILURE"
TESTS $MAX_TEST_RETRIES $MAKE -C$BUILD_DIR -j$NPROC test ARGS="-j50 --rerun-failed" CTEST_OUTPUT_ON_FAILURE="$CTEST_OUTPUT_ON_FAILURE"
fi