~lool/linaro-image-tools/igep-support

« back to all changes in this revision

Viewing changes to linaro_media_create/tests/test_media_create.py

  • Committer: Loïc Minier
  • Date: 2011-02-11 23:27:06 UTC
  • Revision ID: lool@dooz.org-20110211232706-cfut10ztt219devt
Add tests for IGEP.

Show diffs side-by-side

added added

removed removed

Lines of Context:
274
274
            'make_boot_script', 'make_boot_ini']
275
275
        self.assertEqual(expected, self.funcs_calls)
276
276
 
 
277
    def test_igep_steps(self):
 
278
        self.mock_set_appropriate_serial_tty(boards.IgepConfig)
 
279
        self.make_boot_files(boards.IgepConfig)
 
280
        expected = [
 
281
            'make_uImage', 'make_uInitrd', 'make_boot_script',
 
282
            'make_boot_ini']
 
283
        self.assertEqual(expected, self.funcs_calls)
 
284
 
277
285
    def test_overo_steps(self):
278
286
        self.mock_set_appropriate_serial_tty(boards.OveroConfig)
279
287
        self.make_boot_files(boards.OveroConfig)
414
422
            "omapfb.mode=dvi:1280x720MR-16@60'\nboot")
415
423
        self.assertEqual(expected, boot_cmd)
416
424
 
 
425
    def test_igep(self):
 
426
        # XXX: To fix bug 697824 we have to change class attributes of our
 
427
        # OMAP board configs, and some tests do that so to make sure they
 
428
        # don't interfere with us we'll reset that before doing anything.
 
429
        config = board_configs['igep']
 
430
        config.serial_tty = config._serial_tty
 
431
        boot_cmd = config._get_boot_cmd(
 
432
            is_live=False, is_lowmem=False, consoles=[],
 
433
            rootfs_uuid="deadbeef")
 
434
        expected = (
 
435
            "setenv bootcmd 'fatload mmc 0:1 0x80000000 uImage; "
 
436
            "fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80000000 "
 
437
            "0x81600000'\nsetenv bootargs 'console=tty0 "
 
438
            "console=ttyO2,115200n8  root=UUID=deadbeef rootwait ro "
 
439
            "earlyprintk fixrtc nocompcache vram=12M omapfb.mode=dvi:1280x720MR-16@60'\nboot")
 
440
        self.assertEqual(expected, boot_cmd)
 
441
 
417
442
    def test_overo(self):
418
443
        # XXX: To fix bug 697824 we have to change class attributes of our
419
444
        # OMAP board configs, and some tests do that so to make sure they