aboutsummaryrefslogtreecommitdiff
path: root/linaro_image_tools/media_create/tests
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2013-01-14 17:16:48 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2013-01-14 17:16:48 +0200
commite6658917185ee75a237d4462d78141f59d18dfb2 (patch)
tree6daae1b9ed279670fa6fa12138b286445bcebc9b /linaro_image_tools/media_create/tests
parent0f50ba7587a396353eaa56b8372df53ee8e87026 (diff)
Add test_arndale to cover _get_boot_env overridden method
Diffstat (limited to 'linaro_image_tools/media_create/tests')
-rw-r--r--linaro_image_tools/media_create/tests/test_media_create.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/linaro_image_tools/media_create/tests/test_media_create.py b/linaro_image_tools/media_create/tests/test_media_create.py
index 8f56dd5..34f306b 100644
--- a/linaro_image_tools/media_create/tests/test_media_create.py
+++ b/linaro_image_tools/media_create/tests/test_media_create.py
@@ -1977,6 +1977,22 @@ class TestGetBootCmd(TestCase):
'initrd_high': '0xffffffff'}
self.assertEqual(expected, boot_commands)
+ def test_arndale(self):
+ board_conf = get_board_config('arndale')
+ boot_commands = board_conf._get_boot_env(
+ is_live=False, is_lowmem=False, consoles=[],
+ rootfs_id="UUID=deadbeef", i_img_data="initrd", d_img_data=None)
+ expected = {
+ 'bootargs': 'root=UUID=deadbeef rootwait ro',
+ 'bootcmd': 'fatload mmc 0:2 None uImage; '
+ 'fatload mmc 0:2 None uInitrd; '
+ 'bootm None None',
+ 'ethact': 'smc911x-0',
+ 'ethaddr': '00:40:5c:26:0a:5b',
+ 'fdt_high': '0xffffffff',
+ 'initrd_high': '0xffffffff'}
+ self.assertEqual(expected, boot_commands)
+
def test_ux500(self):
board_conf = get_board_config('ux500')
boot_commands = board_conf._get_boot_env(