Refine the scripts for syscall test

This commit is contained in:
LI Qing
2024-01-03 11:29:28 +08:00
committed by Tate, Hongliang Tian
parent c7cda1df28
commit a883b65187
4 changed files with 25 additions and 7 deletions

View File

@ -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 $@

View File

@ -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