2014-12-20 16:52:31 +01:00
|
|
|
from manifests import merge_manifest_data
|
|
|
|
from tools.bootable_manifest import BootableManifest
|
2014-12-21 18:55:44 +01:00
|
|
|
from nose.plugins.skip import Skip
|
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)
|
|
|
|
with BootableManifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
|
|
|
def test_partitioned_extlinux_oldstable():
|
2014-12-21 19:42:43 +01:00
|
|
|
std_partials = ['base', 'oldstable64', 'extlinux', 'msdos', 'single_partition', '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)
|
|
|
|
with BootableManifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
|
|
|
def test_partitioned_grub_oldstable():
|
2014-12-21 19:42:43 +01:00
|
|
|
std_partials = ['base', 'oldstable64', 'grub', 'msdos', 'single_partition', '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)
|
|
|
|
with BootableManifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
|
|
|
def test_unpartitioned_extlinux():
|
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)
|
|
|
|
with BootableManifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
|
|
|
def test_partitioned_extlinux():
|
2014-12-21 19:42:43 +01:00
|
|
|
std_partials = ['base', 'stable64', 'extlinux', 'msdos', 'single_partition', '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)
|
|
|
|
with BootableManifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
|
|
|
def test_partitioned_grub():
|
2014-12-21 19:42:43 +01:00
|
|
|
std_partials = ['base', 'stable64', 'grub', 'msdos', 'single_partition', '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)
|
|
|
|
with BootableManifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
with BootableManifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
|
|
|
def test_partitioned_extlinux_unstable():
|
2014-12-21 19:42:43 +01:00
|
|
|
std_partials = ['base', 'unstable64', 'extlinux', 'msdos', 'single_partition', '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)
|
|
|
|
with BootableManifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|
|
|
|
|
|
|
|
|
|
|
|
def test_partitioned_grub_unstable():
|
2014-12-21 19:42:43 +01:00
|
|
|
std_partials = ['base', 'unstable64', 'grub', 'msdos', 'single_partition', '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)
|
|
|
|
with BootableManifest(manifest_data) as instance:
|
|
|
|
print(instance.console_output)
|