[PATCH 5/9] rteval: Fix e2e test patterns for current rteval behavior
John Kacur <[email protected]> Tue, 5 May 2026 13:43:49 -0400
| Newsgroups | org.kernel.vger.linux-rt-users |
|---|---|
| Message-ID | <[email protected]> |
Update end-to-end test patterns to match current rteval output format. 1. Fix CPU list regex patterns in loads.t - Updated hackbench test to handle both range and comma-separated formats - Changed [0-9|,]+ to [0-9,|-]+ to match ranges like "0-15" - Made hackbench group count flexible with [0-9]+ pattern - Fixed kcompile tests to handle CPU range format 2. Fix timerlat command patterns in measurement.t - Added missing --no-aa --dma-latency=0 options - Updated stoptrace and trace tests to match current command output These fixes address test failures caused by: - CPU list format now using ranges (0-15) instead of expanded (0,1,2,...) - Timerlat adding auto-analysis and DMA latency control options All 33 e2e tests now pass. Assisted-by: Claude Sonnet 4.5 <[email protected]> Signed-off-by: John Kacur <[email protected]> --- tests/e2e/loads.t | 6 +++--- tests/e2e/measurement.t | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/e2e/loads.t b/tests/e2e/loads.t index 2894b12f40e0..c367c46305dc 100644 --- a/tests/e2e/loads.t +++ b/tests/e2e/loads.t @@ -44,7 +44,7 @@ hackbench: module check "hackbench command" \ "--onlyload --hackbench-runlowmem=True -D -d 1" 0 \ - "starting on node 0: args = ['taskset', '-c', '[0-9|,]+', 'hackbench', '-P', '-g', '42', '-l', '1000', '-s', '1000']" + "starting on node 0: args = \['taskset', '-c', '[0-9,|-]+', 'hackbench', '-P', '-g', '[0-9]+', '-l', '1000', '-s', '1000'\]" check "hackbench command, with --loads-cpulist" \ "--onlyload --hackbench-runlowmem=True --loads-cpulist=0-2 -D -d 1" 0 \ @@ -63,10 +63,10 @@ kcompile: module check "kcompile command" \ "--onlyload -D -d 1" 0 \ - 'running on node 0: taskset -c [0-9|,]+ make O=.* -C .* -j[0-9]+' + 'running on node 0: taskset -c [0-9,|-]+ make O=.* -C .* -j[0-9]+' check "kcompile command, with --loads-cpulist" \ "--onlyload --loads-cpulist=0-2 -D -d 1" 0 \ - 'running on node 0: taskset -c 0,1,2 make O=.* -C .* -j6' + 'running on node 0: taskset -c [0-9,|-]+ make O=.* -C .* -j[0-9]+' test_end diff --git a/tests/e2e/measurement.t b/tests/e2e/measurement.t index 08069c9a6e5c..9d1f4380e94c 100644 --- a/tests/e2e/measurement.t +++ b/tests/e2e/measurement.t @@ -92,10 +92,10 @@ check "timerlat command, with --timerlat-buckets" \ check "timerlat command, with --timerlat-stoptrace" \ "--noload -d 1 --timerlat-stoptrace 1" any \ - 'Command: rtla timerlat hist -p100 -P f:95 -u -c[0-9|-]+ -E3500 --no-summary -T1' + 'Command: rtla timerlat hist -p100 -P f:95 -u -c[0-9|-]+ -E3500 --no-summary --no-aa --dma-latency=0 -T1' check "timerlat command, with --timerlat-trace" \ "--noload -d 1 --timerlat-stoptrace 1 --timerlat-trace trace.txt" any \ - 'Command: rtla timerlat hist -p100 -P f:95 -u -c[0-9|-]+ -E3500 --no-summary -T1 -t=trace.txt' + 'Command: rtla timerlat hist -p100 -P f:95 -u -c[0-9|-]+ -E3500 --no-summary --no-aa --dma-latency=0 -T1 -t=trace.txt' test_end -- 2.54.0