2014-12-20 16:52:31 +01:00
|
|
|
from manifests import merge_manifest_data
|
2015-01-25 11:35:30 +01:00
|
|
|
from tools import boot_manifest
|
2015-01-19 18:40:46 +01:00
|
|
|
from unittest.case import SkipTest
|
2014-08-31 13:45:35 +02:00
|
|
|
|
2014-12-20 16:52:31 +01:00
|
|
|
partials = {'vbox': 'provider: {name: virtualbox}',
|
|
|
|
'vdi': 'volume: {backing: vdi}',
|
|
|
|
'vmdk': 'volume: {backing: vmdk}',
|
|
|
|
}
|
2014-08-31 13:45:35 +02:00
|
|
|
|
|
|
|
|
2014-12-21 18:55:44 +01:00
|
|
|
def test_unpartitioned_extlinux_oldstable():
|
2014-12-21 19:42:43 +01:00
|
|
|
std_partials = ['base', 'oldstable64', 'extlinux', 'unpartitioned', 'root_password']
|
2014-12-21 18:55:44 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2014-12-21 18:55:44 +01:00
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
2015-01-19 01:39:48 +01:00
|
|
|
def test_msdos_extlinux_oldstable():
|
2015-01-20 08:31:12 +01:00
|
|
|
std_partials = ['base', 'oldstable64', 'extlinux', 'msdos', 'partitioned', 'root_password']
|
2014-12-21 18:55:44 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2014-12-21 18:55:44 +01:00
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
2015-01-19 01:39:48 +01:00
|
|
|
def test_gpt_extlinux_oldstable():
|
2015-01-20 08:31:12 +01:00
|
|
|
std_partials = ['base', 'oldstable64', 'extlinux', 'gpt', 'partitioned', 'root_password']
|
2015-01-19 01:39:48 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2015-01-19 01:39:48 +01:00
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
2015-03-25 20:44:06 +01:00
|
|
|
def test_unpartitioned_extlinux_stable():
|
2014-12-21 19:42:43 +01:00
|
|
|
std_partials = ['base', 'stable64', 'extlinux', 'unpartitioned', 'root_password']
|
2014-12-21 18:55:44 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2014-12-21 18:55:44 +01:00
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
2015-03-25 20:44:06 +01:00
|
|
|
def test_msdos_extlinux_stable():
|
2015-01-20 08:31:12 +01:00
|
|
|
std_partials = ['base', 'stable64', 'extlinux', 'msdos', 'partitioned', 'root_password']
|
2014-12-21 18:55:44 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2014-12-21 18:55:44 +01:00
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
2015-03-25 20:44:06 +01:00
|
|
|
def test_gpt_extlinux_stable():
|
2015-01-20 08:31:12 +01:00
|
|
|
std_partials = ['base', 'stable64', 'extlinux', 'gpt', 'partitioned', 'root_password']
|
2015-01-19 01:39:48 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2015-01-19 01:39:48 +01:00
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
2015-03-25 20:44:06 +01:00
|
|
|
def test_msdos_grub_stable():
|
2015-01-20 08:31:12 +01:00
|
|
|
std_partials = ['base', 'stable64', 'grub', 'msdos', 'partitioned', 'root_password']
|
2014-12-21 18:55:44 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2014-12-21 18:55:44 +01:00
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
2015-03-25 20:44:06 +01:00
|
|
|
def test_gpt_grub_stable():
|
2015-01-20 08:31:12 +01:00
|
|
|
std_partials = ['base', 'stable64', 'grub', 'gpt', 'partitioned', 'root_password']
|
2015-01-19 01:39:48 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2015-01-19 01:39:48 +01:00
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
2014-12-21 18:55:44 +01:00
|
|
|
def test_unpartitioned_extlinux_unstable():
|
2014-12-31 13:40:33 +01:00
|
|
|
std_partials = ['base', 'unstable64', 'extlinux', 'unpartitioned', 'root_password']
|
2014-12-21 18:55:44 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2014-12-21 18:55:44 +01:00
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
2015-01-19 01:39:48 +01:00
|
|
|
def test_msdos_extlinux_unstable():
|
2015-01-20 08:31:12 +01:00
|
|
|
std_partials = ['base', 'unstable64', 'extlinux', 'msdos', 'partitioned', 'root_password']
|
2014-12-21 18:55:44 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2014-12-21 18:55:44 +01:00
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
2015-01-19 01:39:48 +01:00
|
|
|
def test_gpt_extlinux_unstable():
|
2015-01-20 08:31:12 +01:00
|
|
|
std_partials = ['base', 'unstable64', 'extlinux', 'gpt', 'partitioned', 'root_password']
|
2015-01-19 01:39:48 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2015-01-19 01:39:48 +01:00
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
|
|
|
def test_msdos_grub_unstable():
|
2015-01-20 08:31:12 +01:00
|
|
|
std_partials = ['base', 'unstable64', 'grub', 'msdos', 'partitioned', 'root_password']
|
2014-12-21 18:55:44 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
2014-12-20 16:52:31 +01:00
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2014-12-20 16:52:31 +01:00
|
|
|
print(instance.console_output)
|
2015-01-19 01:39:48 +01:00
|
|
|
|
|
|
|
|
|
|
|
def test_gpt_grub_unstable():
|
2015-01-20 08:31:12 +01:00
|
|
|
std_partials = ['base', 'unstable64', 'grub', 'gpt', 'partitioned', 'root_password']
|
2015-01-19 01:39:48 +01:00
|
|
|
custom_partials = [partials['vbox'], partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
2015-01-25 11:35:30 +01:00
|
|
|
with boot_manifest(manifest_data) as instance:
|
2015-01-19 01:39:48 +01:00
|
|
|
print(instance.console_output)
|