From: Ian Jackson Date: Wed, 30 May 2018 16:11:46 +0000 (+0100) Subject: make-flight: Add a single test with restricted dm X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=3ad89736c11e5f343ca8a56df5c9b698c9df0ae0;p=osstest.git make-flight: Add a single test with restricted dm 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 --- diff --git a/make-flight b/make-flight index c29a612..ebc9156 100755 --- a/make-flight +++ b/make-flight @@ -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