|
|
|
@ -21,14 +21,16 @@ cd $(dirname $0)/../../.. |
|
|
|
|
./tools/run_tests/start_port_server.py |
|
|
|
|
|
|
|
|
|
# run cfstream_test separately because it messes with the network |
|
|
|
|
tools/bazel test $RUN_TESTS_FLAGS --spawn_strategy=standalone --genrule_strategy=standalone --test_output=all --copt="-DGRPC_CFSTREAM=1" //test/cpp/end2end:cfstream_test |
|
|
|
|
# The "local" execution strategy is required because the test runs sudo and that doesn't work in a sandboxed environment (the default on mac) |
|
|
|
|
tools/bazel test $RUN_TESTS_FLAGS --spawn_strategy=local --genrule_strategy=local --test_output=all --copt="-DGRPC_CFSTREAM=1" //test/cpp/end2end:cfstream_test |
|
|
|
|
|
|
|
|
|
# Make sure time is in sync before running time_jump_test because the test does |
|
|
|
|
# NTP sync before exiting. Bazel gets confused if test end time < start time. |
|
|
|
|
sudo sntp -sS pool.ntp.org |
|
|
|
|
|
|
|
|
|
# run time_jump_test separately because it changes system time |
|
|
|
|
tools/bazel test $RUN_TESTS_FLAGS --spawn_strategy=standalone --genrule_strategy=standalone --test_output=all //test/cpp/common:time_jump_test |
|
|
|
|
# The "local" execution strategy is required because the test runs sudo and that doesn't work in a sandboxed environment (the default on mac) |
|
|
|
|
tools/bazel test $RUN_TESTS_FLAGS --spawn_strategy=local --genrule_strategy=local --test_output=all //test/cpp/common:time_jump_test |
|
|
|
|
|
|
|
|
|
# kill port_server.py to prevent the build from hanging |
|
|
|
|
ps aux | grep port_server\\.py | awk '{print $2}' | xargs kill -9 |
|
|
|
|