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
|
2014-08-31 13:45:35 +02:00
|
|
|
|
2015-04-20 16:25:35 +02:00
|
|
|
partials = {'vdi': '{provider: {name: virtualbox}, volume: {backing: vdi}}',
|
|
|
|
'vmdk': '{provider: {name: virtualbox}, volume: {backing: vmdk}}',
|
2014-12-20 16:52:31 +01:00
|
|
|
}
|
2014-08-31 13:45:35 +02:00
|
|
|
|
|
|
|
|
2014-12-21 18:55:44 +01:00
|
|
|
def test_unpartitioned_extlinux_oldstable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'oldstable64', 'extlinux', 'unpartitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
2014-12-21 18:55:44 +01:00
|
|
|
|
|
|
|
|
2015-01-19 01:39:48 +01:00
|
|
|
def test_msdos_extlinux_oldstable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'oldstable64', 'extlinux', 'msdos', 'partitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
2014-12-21 18:55:44 +01:00
|
|
|
|
|
|
|
|
2015-01-19 01:39:48 +01:00
|
|
|
def test_gpt_extlinux_oldstable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'oldstable64', 'extlinux', 'gpt', 'partitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
2015-01-19 01:39:48 +01:00
|
|
|
|
|
|
|
|
2015-03-25 20:44:06 +01:00
|
|
|
def test_unpartitioned_extlinux_stable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'stable64', 'extlinux', 'unpartitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
2014-12-21 18:55:44 +01:00
|
|
|
|
|
|
|
|
2015-03-25 20:44:06 +01:00
|
|
|
def test_msdos_extlinux_stable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'stable64', 'extlinux', 'msdos', 'partitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
2014-12-21 18:55:44 +01:00
|
|
|
|
|
|
|
|
2015-03-25 20:44:06 +01:00
|
|
|
def test_gpt_extlinux_stable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'stable64', 'extlinux', 'gpt', 'partitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
2015-01-19 01:39:48 +01:00
|
|
|
|
|
|
|
|
2015-03-25 20:44:06 +01:00
|
|
|
def test_msdos_grub_stable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'stable64', 'grub', 'msdos', 'partitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
2014-12-21 18:55:44 +01:00
|
|
|
|
|
|
|
|
2015-03-25 20:44:06 +01:00
|
|
|
def test_gpt_grub_stable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'stable64', 'grub', 'gpt', 'partitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
2015-01-19 01:39:48 +01:00
|
|
|
|
|
|
|
|
2014-12-21 18:55:44 +01:00
|
|
|
def test_unpartitioned_extlinux_unstable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'unstable64', 'extlinux', 'unpartitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
2014-12-21 18:55:44 +01:00
|
|
|
|
|
|
|
|
2015-01-19 01:39:48 +01:00
|
|
|
def test_msdos_extlinux_unstable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'unstable64', 'extlinux', 'msdos', 'partitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
2014-12-21 18:55:44 +01:00
|
|
|
|
|
|
|
|
2015-01-19 01:39:48 +01:00
|
|
|
def test_gpt_extlinux_unstable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'unstable64', 'extlinux', 'gpt', 'partitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
2015-01-19 01:39:48 +01:00
|
|
|
|
|
|
|
|
|
|
|
def test_msdos_grub_unstable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'unstable64', 'grub', 'msdos', 'partitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
2015-01-19 01:39:48 +01:00
|
|
|
|
|
|
|
|
|
|
|
def test_gpt_grub_unstable():
|
2016-06-04 11:35:59 +02:00
|
|
|
std_partials = ['base', 'unstable64', 'grub', 'gpt', 'partitioned', 'root_password']
|
|
|
|
custom_partials = [partials['vmdk']]
|
|
|
|
manifest_data = merge_manifest_data(std_partials, custom_partials)
|
|
|
|
with boot_manifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|