提交 cf633765 编写于 作者: D Dong Li 提交者: Yifei Jiang

build: moved bazel startup config to bazel.rc

* build and test won't clean up each other
上级 b24ae9ee
......@@ -316,7 +316,7 @@ function run_test() {
# FIXME(all): when all unit test passed, switch back.
# bazel test --config=unit_test -c dbg //...
generate_test_targets_dbg
echo "$TEST_TARGETS" | xargs bazel test $DEFINES --config=unit_test -c dbg --test_verbose_timeout_warnings
echo "$TEST_TARGETS" | xargs bazel --batch --batch_cpu_scheduling test $DEFINES --config=unit_test -c dbg --test_verbose_timeout_warnings
if [ $? -ne 0 ]; then
fail "Test failed!"
return 1
......@@ -324,7 +324,7 @@ function run_test() {
generate_test_targets_opt
build_caffe_opt
echo "$TEST_TARGETS" | xargs bazel test $DEFINES --config=unit_test -c opt --test_verbose_timeout_warnings
echo "$TEST_TARGETS" | xargs bazel --batch --batch_cpu_scheduling test $DEFINES --config=unit_test -c opt --test_verbose_timeout_warnings
if [ $? -eq 0 ]; then
success 'Test passed!'
return 0
......
# +------------------------------------------------------------+
# | Startup Options |
# +------------------------------------------------------------+
startup --batch --batch_cpu_scheduling
# +------------------------------------------------------------+
# | Test Configurations |
# +------------------------------------------------------------+
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册