From a2aedcfb3afa31d8cf27b9b458df7103e3c68bfe Mon Sep 17 00:00:00 2001 From: Zhang Junyang Date: Fri, 13 Jun 2025 20:56:46 +0800 Subject: [PATCH] Add a SMP LTP block list --- test/syscall_test/ltp/Makefile | 7 ++++++- test/syscall_test/ltp/testcases/blocked/smp.txt | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test/syscall_test/ltp/testcases/blocked/smp.txt diff --git a/test/syscall_test/ltp/Makefile b/test/syscall_test/ltp/Makefile index 504a9bed8..d6d75315e 100644 --- a/test/syscall_test/ltp/Makefile +++ b/test/syscall_test/ltp/Makefile @@ -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 \ diff --git a/test/syscall_test/ltp/testcases/blocked/smp.txt b/test/syscall_test/ltp/testcases/blocked/smp.txt new file mode 100644 index 000000000..ec2785b27 --- /dev/null +++ b/test/syscall_test/ltp/testcases/blocked/smp.txt @@ -0,0 +1,3 @@ +# See https://github.com/asterinas/asterinas/issues/2152 +kill02 +kill08 \ No newline at end of file