Skip to contentSkip to conversation

testsuite/xeno-test: add --vm option

PATCH Applied Q. Gylstorff 2 participants 2 messages Sep 25, 2019 – Sep 30, 2019

lore
Share & tools
lore
#0 lore raw

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.

---
 testsuite/xeno-test/xeno-test.in | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
testsuite/xeno-test/xeno-test.in +10 -1
index bee0bccc7..505adfd75 100644
@@ -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
Applied
#1 lore raw
Quoted 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.

---
  testsuite/xeno-test/xeno-test.in | 11 ++++++++++-
  1 file changed, 10 insertions(+), 1 deletion(-)
testsuite/xeno-test/xeno-test.in +9 -0
index bee0bccc7..505adfd75 100644
@@ -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