mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 00:43:24 +00:00
Refine the scripts for syscall test
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
c7cda1df28
commit
a883b65187
@ -63,7 +63,7 @@ $(TESTS): $(BIN_DIR) $(TARGET_DIR)
|
||||
ifndef ASTER_PREBUILT_SYSCALL_TEST
|
||||
$(BIN_DIR): $(SRC_DIR)
|
||||
@if ! type bazel > /dev/null; then \
|
||||
echo "bazel is not installed, please run $(CUR_DIR)/install_bazel.sh with sudo permission to install it."; \
|
||||
echo "bazel is not installed, please run tools/install_bazel.sh with sudo permission to install it."; \
|
||||
exit 1; \
|
||||
fi
|
||||
@rm -rf $@ && mkdir -p $@
|
||||
|
@ -39,7 +39,7 @@ run_one_test(){
|
||||
ret=0
|
||||
if [ -f $TEST_BIN_DIR/$1 ]; then
|
||||
get_blocklist_subtests $1
|
||||
$TEST_BIN_DIR/$1 --gtest_filter=-$BLOCK
|
||||
cd $TEST_BIN_DIR && ./$1 --gtest_filter=-$BLOCK
|
||||
ret=$?
|
||||
#After executing the test, it is necessary to clean the directory to ensure no residual data remains
|
||||
rm -rf $TEST_TMP_DIR/*
|
||||
@ -72,4 +72,4 @@ if [ $TESTS != $PASSED_TESTS ]; then
|
||||
cat $FAIL_CASES
|
||||
fi
|
||||
|
||||
exit $RESULT
|
||||
exit $RESULT
|
||||
|
Reference in New Issue
Block a user