From: Richard W.M. Jones Date: Wed, 22 Apr 2015 18:40:12 +0000 (+0100) Subject: vmware-uefi: Add UEFI test cases. X-Git-Url: http://git.annexia.org/?p=virt-v2v-test-cases-nonfree.git;a=commitdiff_plain;h=670b4aa19941447fe93f0fea58f2eefb209934df vmware-uefi: Add UEFI test cases. --- diff --git a/Makefile.am b/Makefile.am index a1331bc..a96efe5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,5 +20,6 @@ include $(top_srcdir)/common-rules.mk SUBDIRS = \ rhel5xen-rhel \ vmware-rhel \ + vmware-uefi \ vmware-win \ windows-virtio diff --git a/configure.ac b/configure.ac index a0a27c9..9c23ec9 100644 --- a/configure.ac +++ b/configure.ac @@ -100,6 +100,7 @@ AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile rhel5xen-rhel/Makefile vmware-rhel/Makefile + vmware-uefi/Makefile vmware-win/Makefile windows-virtio/Makefile]) AC_OUTPUT diff --git a/vmware-uefi/Makefile.am b/vmware-uefi/Makefile.am new file mode 100644 index 0000000..2e9e695 --- /dev/null +++ b/vmware-uefi/Makefile.am @@ -0,0 +1,35 @@ +# virt-v2v test cases (not redistributable) +# Copyright (C) 2014-2015 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +include $(top_srcdir)/common-rules.mk + +CLEANFILES += *.img *-converted* *-booted* *.test *.scrn + +tests_sources = \ + rhel_71_x86_64_uefi.ml \ + win_2012r2_x86_64_uefi.ml +tests = \ + rhel_71_x86_64_uefi.test \ + win_2012r2_x86_64_uefi.test + +TESTS = $(tests) + +check_SCRIPTS = $(tests) + +%.test: %.cmx + $(OCAMLFIND) ocamlopt $(OCAMLFLAGS) $(OCAMLPACKAGES) \ + $(OCAMLLINKPKG) $< -o $@ diff --git a/vmware-uefi/rhel_71_x86_64_uefi.ml b/vmware-uefi/rhel_71_x86_64_uefi.ml new file mode 100644 index 0000000..f2afa4d --- /dev/null +++ b/vmware-uefi/rhel_71_x86_64_uefi.ml @@ -0,0 +1,11 @@ +open V2v_test_harness + +let test = "rhel_71_x86_64_uefi" +let input_disk = test ^ ".ova" +let test_plan = { + default_plan with + (*boot_plan = Boot_to_screenshot (test ^ ".ppm")*) + boot_plan = Boot_to_idle +} + +let () = run ~test ~input_disk ~test_plan () diff --git a/vmware-uefi/rhel_71_x86_64_uefi.ova b/vmware-uefi/rhel_71_x86_64_uefi.ova new file mode 120000 index 0000000..9798f12 --- /dev/null +++ b/vmware-uefi/rhel_71_x86_64_uefi.ova @@ -0,0 +1 @@ +../.git/annex/objects/14/wq/SHA256E-s1297248256--22cccdc1d15b300facd5328a15d6f1df00b23fa7c27f7af33ca0eca175059940.ova/SHA256E-s1297248256--22cccdc1d15b300facd5328a15d6f1df00b23fa7c27f7af33ca0eca175059940.ova \ No newline at end of file diff --git a/vmware-uefi/win_2012r2_x86_64_uefi.ml b/vmware-uefi/win_2012r2_x86_64_uefi.ml new file mode 100644 index 0000000..909ee37 --- /dev/null +++ b/vmware-uefi/win_2012r2_x86_64_uefi.ml @@ -0,0 +1,12 @@ +open V2v_test_harness + +let test = "win_2012r2_x86_64_uefi" +let input_disk = test ^ ".ova" + +let test_plan = { + default_plan with + (*boot_plan = Boot_to_screenshot (test ^ ".ppm")*) + boot_plan = Boot_to_idle +} + +let () = run ~test ~input_disk ~test_plan () diff --git a/vmware-uefi/win_2012r2_x86_64_uefi.ova b/vmware-uefi/win_2012r2_x86_64_uefi.ova new file mode 120000 index 0000000..4dd78f9 --- /dev/null +++ b/vmware-uefi/win_2012r2_x86_64_uefi.ova @@ -0,0 +1 @@ +../.git/annex/objects/zM/zf/SHA256E-s5406133760--1ac30905506d399171a52375fb9bf6744f981e5b8ccd14175198f9cde3e673e4.ova/SHA256E-s5406133760--1ac30905506d399171a52375fb9bf6744f981e5b8ccd14175198f9cde3e673e4.ova \ No newline at end of file diff --git a/vmware-uefi/win_2012r2_x86_64_uefi.passwd b/vmware-uefi/win_2012r2_x86_64_uefi.passwd new file mode 100644 index 0000000..59a7dab --- /dev/null +++ b/vmware-uefi/win_2012r2_x86_64_uefi.passwd @@ -0,0 +1,2 @@ +Username: Administrator +Password: WindowsPleaseDie2012