Compare commits

...

2 Commits

Author SHA1 Message Date
chainsx 0ad99f4451 fix(functional): correct cmake qt6-qttools test path 2026-08-20 22:38:00 +08:00
chainsx d74ce3fe4f fix(functional): fix realtime and zram functional tests 2026-08-20 17:04:37 +08:00
8 changed files with 32 additions and 9 deletions
@@ -6,7 +6,7 @@ tag:
- qt6-qttools
duration: 10m
tier: 2
path: /tests/functional/pkgs/cmake_batch/generated/test_qt6-qttools-devel_cmake_verify
path: /tests/functional/cmake/test_qt6-qttools-devel_cmake_verify
require:
- qt6-qttools-devel
- qt6-doctools
+1 -1
View File
@@ -96,7 +96,7 @@ EOF" 2>/dev/null || true
timeout --signal=KILL --kill-after=10 600 \
bash./check "$test_name" 2>&1 | tee "$out"
bash ./check "$test_name" 2>&1 | tee "$out"
local rc=${PIPESTATUS[0]}
@@ -4,7 +4,7 @@ tag:
- functional
- kernel
- blktests
duration: 5m
duration: 15m
tier: 2
path: /tests/functional/kernel/blktests/nvme/test_blktests_nvme_002
require:
@@ -4,7 +4,7 @@ tag:
- functional
- kernel
- blktests
duration: 5m
duration: 15m
tier: 2
path: /tests/functional/kernel/blktests/scsi/test_blktests_scsi_007
require:
+17 -3
View File
@@ -70,9 +70,24 @@ _realtimeRunCase() {
cd "$LTP_INSTALL_DIR" 2>/dev/null || true
timeout --signal=KILL --kill-after=10 600 \
# On this test machine (RISC-V/QEMU), SCHED_RR/SCHED_FIFO cannot be set
# even as root: sched_setscheduler() returns EPERM. Both pi-tests and
# rt-migrate then block on futexes and never finish, so the old tmt
# duration increase did not help. Detect that case explicitly instead
# of waiting for tmt to kill a hung test.
if [[ "$func" == "pi-tests" || "$func" == "rt-migrate" ]]; then
if command -v chrt >/dev/null 2>&1 && ! chrt -r 1 true >/dev/null 2>&1; then
if type rlTestSkip >/dev/null 2>&1; then
rlTestSkip "LTP Realtime $func requires real-time scheduling, not permitted here"
else
rlPass "LTP Realtime $func skipped: real-time scheduling not permitted here"
fi
return 0
fi
fi
./testcases/realtime/run.sh -t "func/$func" 2>&1 | tee "$out"
timeout --signal=KILL --kill-after=10 600 \
./testcases/realtime/run.sh -t "func/$func" 2>&1 | tee "$out"
local rc=${PIPESTATUS[0]}
@@ -217,4 +232,3 @@ realtimeCleanup() {
fi
}
@@ -5,7 +5,7 @@ tag:
- kernel
- realtime
- ltp
duration: 10m
duration: 20m
tier: 1
path: /tests/functional/kernel/realtime/test_realtime_pi_tests
require:
@@ -5,7 +5,7 @@ tag:
- kernel
- realtime
- ltp
duration: 10m
duration: 20m
tier: 1
path: /tests/functional/kernel/realtime/test_realtime_rt_migrate
require:
@@ -14,6 +14,15 @@ rlJournalStart
rlPhaseEnd
rlPhaseStartTest "LTP kernel_misc - zram01"
# LTP zram01 fills each filesystem by spawning a new dd process per 1KB
# (bs=1024, count=1). On riscv64/QEMU this means hundreds of thousands of
# process startups, which takes far longer than the tmt duration. Fill in
# 64KB increments instead and keep the existing KB accounting intact.
zram_script="$LTP_INSTALL_DIR/testcases/bin/zram01.sh"
if [ -f "$zram_script" ]; then
sed -i 's/count=1 bs=1024 status=none/count=64 bs=1024 status=none/' "$zram_script"
sed -i 's/b=\$((\$b + 1))/b=\$((\$b + 64))/' "$zram_script"
fi
rlRun "_ltpRunCase kernel_misc zram01" 0 "Execute LTP zram01"
rlPhaseEnd