]> xenbits.xensource.com Git - people/dariof/osstest.git/commitdiff
Testing cpupools: recipe for it and job definition dev test-host-swsuspend
authorDario Faggioli <dario.faggioli@citrix.com>
Thu, 18 Dec 2014 10:36:01 +0000 (11:36 +0100)
committerDario Faggioli <dario.faggioli@citrix.com>
Fri, 19 Dec 2014 12:52:54 +0000 (13:52 +0100)
Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
---
Changes from v1:
 * added invocation to ts-guest-stop in the recipe to kill
   leak-check complaints (which went unnoticed during v1
   testing, sorry)
 * moved the test before the "ARM cutoff", and remove the
   per-arch filtering, so that the test can run on ARM
   hardware too

make-flight
sg-run-job

index a91f2562ae1cfebd532ca028ed98cfa15e3b986f..bd413b2f77adaf7e191ad75e4deb881acc9cc051 100755 (executable)
@@ -266,6 +266,16 @@ do_credit2_tests () {
             $debian_runvars all_hostflags=$most_hostflags
 }
 
+do_cpupools_tests () {
+  if [ $xenarch != $dom0arch ]; then
+    return
+  fi
+
+  job_create_test test-$xenarch$kern-$dom0arch-xl-cpupools            \
+       test-cpupools xl $xenarch $dom0arch                            \
+            $debian_runvars all_hostflags=$most_hostflags
+}
+
 do_passthrough_tests () {
   if [ $xenarch != amd64 -o $dom0arch != amd64 -o "$kern" != "" ]; then
     return
@@ -293,6 +303,8 @@ test_matrix_do_one () {
             $xenarch $dom0arch                                       \
             $debian_runvars all_hostflags=$most_hostflags
 
+  do_cpupools_tests
+
   # No further arm tests at the moment
   if [ $dom0arch = armhf ]; then
       return
index 2cf810aa3d15329aedfb4a0610825ae9848b972c..fae5af0fc10e425ce837fa7a48801c8cc0d4e361 100755 (executable)
@@ -272,6 +272,13 @@ proc run-job/test-debianhvm {} {
     test-guest debianhvm
 }
 
+proc need-hosts/test-cpupools {} { return host }
+proc run-job/test-cpupools {} {
+    install-guest-debian
+    run-ts . = ts-cpupools
+    run-ts . = ts-guest-stop + host debian
+}
+
 proc need-hosts/test-pair {} { return {src_host dst_host} }
 proc run-job/test-pair {} {
     run-ts . =              ts-debian-install      dst_host