aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/machine-manifest/testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-10 18:46:42 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-11 17:56:04 +0300
commitdd1d5472bf28beba971d2b507fab53dec43939f7 (patch)
tree10d0f60e34012b339d1fb740d56a15487ccb1cf1 /unit-tests/machine-manifest/testscript
parentb8232e40e605b60234dae7ef92f257bab5c47723 (diff)
Allow multi-line machine manifest options value
Diffstat (limited to 'unit-tests/machine-manifest/testscript')
-rw-r--r--unit-tests/machine-manifest/testscript45
1 files changed, 45 insertions, 0 deletions
diff --git a/unit-tests/machine-manifest/testscript b/unit-tests/machine-manifest/testscript
index 66dedc6..e264b41 100644
--- a/unit-tests/machine-manifest/testscript
+++ b/unit-tests/machine-manifest/testscript
@@ -22,6 +22,38 @@
options: -device "virtio-scsi-pci,id=scsi" -device "scsi-hd,drive=disk0"
EOF
+ : multi-line-options
+ :
+ $* <<EOI >>EOO
+ : 1
+ id: a2b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+ name: windows_10-msvc_14
+ summary: Windows 10 build 1607 with VC 14 update 3
+ type: kvm
+ options: \
+ -device "virtio-scsi-pci,id=scsi"
+ -device "scsi-hd,drive=disk0"
+ \
+ EOI
+ : 1
+ id: a2b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+ name: windows_10-msvc_14
+ summary: Windows 10 build 1607 with VC 14 update 3
+ type: kvm
+ options: -device "virtio-scsi-pci,id=scsi" -device "scsi-hd,drive=disk0"
+ EOO
+
+ : no-mac
+ :
+ $* <<EOF >>EOF
+ : 1
+ id: a2b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+ name: windows_10-msvc_14
+ summary: Windows 10 build 1607 with VC 14 update 3
+ type: nspawn
+ options: -device "virtio-scsi-pci,id=scsi" -device "scsi-hd,drive=disk0"
+ EOF
+
: no-options
:
$* <<EOF >>EOF
@@ -106,6 +138,19 @@
summary: Windows 10 build 1607 with VC 14 update 3
options: -device "virtio-scsi-pci,id=scsi
EOI
+
+ : unquoted-multi-line
+ :
+ $* <<EOI 2>'stdin:7:29: error: invalid machine options: unterminated quoted string' == 1
+ : 1
+ id: a2b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
+ name: windows_10-msvc_14
+ summary: Windows 10 build 1607 with VC 14 update 3
+ options: \
+ -device "virtio-scsi-pci,id=scsi"
+ -device "scsi-hd,drive=disk0
+ \
+ EOI
}
}