Check if we truly pass the tests in auto test

This commit is contained in:
Zhang Junyang
2024-04-09 12:34:01 +08:00
committed by Tate, Hongliang Tian
parent e3cb4d25e3
commit 63be797c2d
4 changed files with 23 additions and 8 deletions

View File

@ -0,0 +1,7 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "Successfully booted."

View File

@ -10,3 +10,5 @@ cd ${SCRIPT_DIR}
./shell_cmd.sh
./process.sh
./network.sh
echo "All regression tests passed."

View File

@ -65,10 +65,10 @@ for syscall_test in $(find $TEST_BIN_DIR/. -name \*_test) ; do
fi
done
echo -e "$GREEN$PASSED_TESTS$NC of $GREEN$TESTS$NC test cases are passed."
echo -e "$GREEN$PASSED_TESTS$NC of $GREEN$TESTS$NC test cases passed."
[ $PASSED_TESTS -ne $TESTS ] && RESULT=1
if [ $TESTS != $PASSED_TESTS ]; then
echo -e "The $RED$(($TESTS-$PASSED_TESTS))$NC failed test cases in this run are as follows:"
echo -e "The $RED$(($TESTS-$PASSED_TESTS))$NC failed test cases are as follows:"
cat $FAIL_CASES
fi