Add a SMP LTP block list

This commit is contained in:
Zhang Junyang 2025-06-13 20:56:46 +08:00 committed by Tate, Hongliang Tian
parent 4855375f56
commit a2aedcfb3a
2 changed files with 9 additions and 1 deletions

View File

@ -9,11 +9,12 @@ RUN_BASH := $(CUR_DIR)/run_ltp_test.sh
ALL_TESTS := $(CUR_DIR)/testcases/all.txt
EXT2_BLOCKLIST := $(CUR_DIR)/testcases/blocked/ext2.txt
EXFAT_BLOCKLIST := $(CUR_DIR)/testcases/blocked/exfat.txt
SMP_BLOCKLIST := $(CUR_DIR)/testcases/blocked/smp.txt
.PHONY: all
all: $(TARGET_DIR)
$(TARGET_DIR): $(RUN_BASH) $(ALL_TESTS) $(EXT2_BLOCKLIST) $(EXFAT_BLOCKLIST)
$(TARGET_DIR): $(RUN_BASH) $(ALL_TESTS) $(EXT2_BLOCKLIST) $(EXFAT_BLOCKLIST) $(SMP_BLOCKLIST)
@rm -rf $@ && mkdir -p $@
@# Prepare tests dir for test binaries
@mkdir -p $@/testcases/bin
@ -26,6 +27,10 @@ $(TARGET_DIR): $(RUN_BASH) $(ALL_TESTS) $(EXT2_BLOCKLIST) $(EXFAT_BLOCKLIST)
else \
cp -f $@/all.txt $@/filtered.txt; \
fi;
@if [ "$(SMP)" != "1" ]; then \
grep -vxF -f $(SMP_BLOCKLIST) $@/filtered.txt > $@/filtered.txt.tmp; \
mv $@/filtered.txt.tmp $@/filtered.txt; \
fi;
@# Process syscall testcases and copy binaries
@while read -r syscall binary params; do \
if grep -q "^$$syscall$$" $@/filtered.txt; then \

View File

@ -0,0 +1,3 @@
# See https://github.com/asterinas/asterinas/issues/2152
kill02
kill08