testsuite/xeno-test: add --vm option
PATCH 1/1 testsuite/xeno-test: add --vm option
From: Quirin Gylstorff <[email protected]>
If the xeno-test are excuted in a virtual environment the tests fail due missed timing thresholds. To allow a successful test in a virtual environment pass the --vm option to smokey.
Signed-off-by Quirin Gylstorff <[email protected]>
--- testsuite/xeno-test/xeno-test.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
testsuite/xeno-test/xeno-test.in +10 -1
@@ -24,6 +24,9 @@ If the script is passed the -r option, real-time stress is added to the test, with the help of the "switchtest" test. But beware: the latency test figures are then no longer meaningful. +For running test in a virtual machine use the --vm option. This option relaxes +some of the timing thresholds. + Any other option passed on the command line is passed to the latency test. Example:
@@ -37,6 +40,7 @@ EOF } keep_going= +run_on_vm= rt_load=false while :; do
@@ -51,6 +55,11 @@ while :; do shift ;; + --vm) + run_on_vm=--vm + shift + ;; + -r) rt_load=true shift
@@ -73,7 +82,7 @@ echo 0 > /proc/xenomai/latency || : testdir=@testdir@ -$testdir/smokey --run $keep_going random_alloc_rounds=64 pattern_check_rounds=64 +$testdir/smokey --run $run_on_vm $keep_going random_alloc_rounds=64 pattern_check_rounds=64 $testdir/clocktest -D -T 30 -C CLOCK_HOST_REALTIME || $testdir/clocktest -T 30 $testdir/switchtest -T 30
Signature · 1 line
2.20.1
Jan Kiszka
AppliedQuoted 47 lines · Q. Gylstorff
From: Quirin Gylstorff <[email protected]>
If the xeno-test are excuted in a virtual environment the tests fail due missed timing thresholds. To allow a successful test in a virtual environment pass the --vm option to smokey.
Signed-off-by Quirin Gylstorff <[email protected]>--- testsuite/xeno-test/xeno-test.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)testsuite/xeno-test/xeno-test.in +9
-0@@ -24,6 +24,9 @@ If the script is passed the -r option, real-time stress is added to the test, with the help of the "switchtest" test. But beware: the latency test figures are then no longer meaningful. +For running test in a virtual machine use the --vm option. This option relaxes +some of the timing thresholds. + Any other option passed on the command line is passed to the latency test. Example:@@ -37,6 +40,7 @@ EOF } keep_going= +run_on_vm= rt_load=false while :; do@@ -51,6 +55,11 @@ while :; do shift ;; + --vm) + run_on_vm=--vm + shift + ;; + -r) rt_load=true shift
testsuite/xeno-test/xeno-test.in echo 0 > /proc/xenomai/latency || : · line 88
Quoted 8 lines
testsuite/xeno-test/xeno-test.in +1
-1@@ -73,7 +82,7 @@ echo 0 > /proc/xenomai/latency || : testdir=@testdir@ -$testdir/smokey --run $keep_going random_alloc_rounds=64 pattern_check_rounds=64 +$testdir/smokey --run $run_on_vm $keep_going random_alloc_rounds=64 pattern_check_rounds=64 $testdir/clocktest -D -T 30 -C CLOCK_HOST_REALTIME || $testdir/clocktest -T 30 $testdir/switchtest -T 30
Thanks, applied. Will push to stable as well.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux