Add exFAT file system

This commit is contained in:
Yingdi Shan
2024-03-18 15:58:37 +08:00
committed by Tate, Hongliang Tian
parent 52f07458f7
commit 650c7dfbad
29 changed files with 5861 additions and 42 deletions

View File

@ -18,11 +18,18 @@ NC='\033[0m'
get_blocklist_subtests(){
if [ -f $BLOCKLIST_DIR/$1 ]; then
BLOCK=$(sed ':a;N;$!ba;s/\n/:/g' $BLOCKLIST_DIR/$1)
return 0
else
BLOCK=""
return 1
fi
for extra_dir in $EXTRA_BLOCKLISTS_DIRS ; do
if [ -f $SCRIPT_DIR/$extra_dir/$1 ]; then
BLOCK="${BLOCK}:$(sed ':a;N;$!ba;s/\n/:/g' $SCRIPT_DIR/$extra_dir/$1)"
fi
done
return 0
}
run_one_test(){
@ -31,10 +38,11 @@ run_one_test(){
export TEST_TMPDIR=$TEST_TMP_DIR
ret=0
if [ -f $TEST_BIN_DIR/$1 ]; then
rm -rf $TEST_TMP_DIR/*
get_blocklist_subtests $1
$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/*
else
echo -e "Warning: $1 test does not exit"
ret=1
@ -44,6 +52,7 @@ run_one_test(){
}
rm -f $FAIL_CASES && touch $FAIL_CASES
rm -rf $TEST_TMP_DIR/*
for syscall_test in $(find $TEST_BIN_DIR/. -name \*_test) ; do
test_name=$(basename "$syscall_test")
@ -63,4 +72,4 @@ if [ $TESTS != $PASSED_TESTS ]; then
cat $FAIL_CASES
fi
exit $RESULT
exit $RESULT