]> xenbits.xensource.com Git - people/royger/osstest.git/commitdiff
make-flight: Add a single test with restricted dm
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 30 May 2018 16:11:46 +0000 (17:11 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 14 Jun 2018 14:00:07 +0000 (15:00 +0100)
As of this commit, this test is only functional: we don't do any
auditing yet.

Right now save/restore migration is broken with restricted dm, so
disable that test with the recipe flag.  See
  sg-run-job: Allow flight to specify recipe flag to disable migr tests

Run this only on recent enough Xen: the dm_restrict option was added
as an experimental feature in Xen 4.10 (currently as yet unreleased).
(With older libxl/xl, the option would be ignored and the test would
be a waste of time.)

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
make-flight

index c29a612220b9b5567d0b75b072a0bff9d39d04ee..ebc9156d79ac1ef5a30ae95d72b8fcc4f5780169 100755 (executable)
@@ -442,6 +442,20 @@ do_hvm_debian_tests() {
   # For libvirt we only generate -xsm test case.
   if [ "x$qemuu_suffix" == "x-qemuu" ]; then
     do_hvm_debian_test_one ovmf xl ovmf false
+
+    case $xenbranch in
+      xen-3.*-testing)     dmrestrict=false ;;
+      xen-4.[0-9]-testing) dmrestrict=false ;;
+      *)                   dmrestrict=true ;;
+    esac
+
+    if $dmrestrict; then
+      do_hvm_debian_test_one dmrestrict xl seabios false '' -dmrestrict '
+                           debianhvm_dmrestrict=true
+                           recipe_nomigrate=true
+                           '
+    fi
+
     for xsm in $xsms ; do
       do_hvm_debian_test_one debianhvm xl seabios $xsm
       if [ x$xsm = xtrue ]; then