From 4a04af38f1399ed448ac28e7780a91656b5fa2fb Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sat, 8 Jun 2019 15:33:37 -0400 Subject: [PATCH] tests: clitest: Add windows unattended unittest --- .../virt-install-osinfo-win7-unattended.xml | 133 ++++++++++++++++++ tests/cli-test-xml/fake-win7.iso | Bin 0 -> 380928 bytes tests/clitest.py | 3 + virtinst/installer.py | 6 + 4 files changed, 142 insertions(+) create mode 100644 tests/cli-test-xml/compare/virt-install-osinfo-win7-unattended.xml create mode 100755 tests/cli-test-xml/fake-win7.iso diff --git a/tests/cli-test-xml/compare/virt-install-osinfo-win7-unattended.xml b/tests/cli-test-xml/compare/virt-install-osinfo-win7-unattended.xml new file mode 100644 index 00000000..f075c6fc --- /dev/null +++ b/tests/cli-test-xml/compare/virt-install-osinfo-win7-unattended.xml @@ -0,0 +1,133 @@ + + foobar + 00000000-1111-2222-3333-444444444444 + + + + + + 65536 + 65536 + 2 + + hvm + + + + + + + + + + + + + + + + + + + destroy + + + + + + /usr/bin/qemu-kvm + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + foobar + 00000000-1111-2222-3333-444444444444 + + + + + + 65536 + 65536 + 2 + + hvm + + + + + + + + + + + + + + + + + + + + + + + + /usr/bin/qemu-kvm + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/cli-test-xml/fake-win7.iso b/tests/cli-test-xml/fake-win7.iso new file mode 100755 index 0000000000000000000000000000000000000000..2bfe75cd499f74ab52b721fb369cd6a7ae9d66d9 GIT binary patch literal 380928 zcmeI*e{5aVeE{(DZ0B7sq_G8SpfHk0#$0|V#`#f00(dfxZ4B`bY=wK%R!L5D9s=3D%Ncxc&ZR%8*Q^K1q4=8C4mZ5${%e&G(!mC;DN%Ar6dHuo%@_0 zP}qzr0<3(V_3kg;apZR_kfHcfpdYi(`rXzS^0Yj13A&c#e_VSRnw zITyF|1}S$HFY;P_I7sX&S*L_H+SK}`MKuW<(*4AS{FAiX+B(d?womb z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