Revision | a6abfddc1cd83e826318473c074061d7d161d65c (tree) |
---|---|
Time | 2022-01-30 23:33:49 |
Author | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
test/avocado: Update machibe_rx_gdbsim tests.
Since SCI supports continuous data receive, Added that test.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
@@ -9,6 +9,7 @@ | ||
9 | 9 | # later. See the COPYING file in the top-level directory. |
10 | 10 | |
11 | 11 | import os |
12 | +import time | |
12 | 13 | |
13 | 14 | from avocado import skipIf |
14 | 15 | from avocado_qemu import QemuSystemTest |
@@ -20,7 +21,7 @@ from avocado.utils import archive | ||
20 | 21 | class RxGdbSimMachine(QemuSystemTest): |
21 | 22 | |
22 | 23 | timeout = 30 |
23 | - KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 ' | |
24 | + KERNEL_COMMON_COMMAND_LINE = 'printk.time=0 console=ttySC0,9600' | |
24 | 25 | |
25 | 26 | @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') |
26 | 27 | def test_uboot(self): |
@@ -31,8 +32,8 @@ class RxGdbSimMachine(QemuSystemTest): | ||
31 | 32 | :avocado: tags=machine:gdbsim-r5f562n8 |
32 | 33 | :avocado: tags=endian:little |
33 | 34 | """ |
34 | - uboot_url = ('https://acc.dl.osdn.jp/users/23/23888/u-boot.bin.gz') | |
35 | - uboot_hash = '9b78dbd43b40b2526848c0b1ce9de02c24f4dcdb' | |
35 | + uboot_url = ('https://osdn.dl.osdn.net/users/37/37476/u-boot.bin.gz') | |
36 | + uboot_hash = '5299a1deb6540ed8699a21ab32b61d862f8d3e32' | |
36 | 37 | uboot_path = self.fetch_asset(uboot_url, asset_hash=uboot_hash) |
37 | 38 | uboot_path = archive.uncompress(uboot_path, self.workdir) |
38 | 39 |
@@ -40,11 +41,12 @@ class RxGdbSimMachine(QemuSystemTest): | ||
40 | 41 | self.vm.add_args('-bios', uboot_path, |
41 | 42 | '-no-reboot') |
42 | 43 | self.vm.launch() |
43 | - uboot_version = 'U-Boot 2016.05-rc3-23705-ga1ef3c71cb-dirty' | |
44 | + uboot_version = 'U-Boot 2021.10-rc3-00012-g92f3eb4647 (Jan 02 2022 - 21:06:23 +0900)' | |
44 | 45 | wait_for_console_pattern(self, uboot_version) |
45 | - gcc_version = 'rx-unknown-linux-gcc (GCC) 9.0.0 20181105 (experimental)' | |
46 | - # FIXME limit baudrate on chardev, else we type too fast | |
47 | - #exec_command_and_wait_for_pattern(self, 'version', gcc_version) | |
46 | + gcc_version = 'rx-unknown-linux-gcc (GCC) 12.0.0 20210903 (experimental)' | |
47 | + # Wait for prompt | |
48 | + time.sleep(1) | |
49 | + exec_command_and_wait_for_pattern(self, 'version', gcc_version) | |
48 | 50 | |
49 | 51 | @skipIf(os.getenv('GITLAB_CI'), 'Running on GitLab') |
50 | 52 | def test_linux_sash(self): |
@@ -55,18 +57,19 @@ class RxGdbSimMachine(QemuSystemTest): | ||
55 | 57 | :avocado: tags=machine:gdbsim-r5f562n7 |
56 | 58 | :avocado: tags=endian:little |
57 | 59 | """ |
58 | - dtb_url = ('https://acc.dl.osdn.jp/users/23/23887/rx-virt.dtb') | |
59 | - dtb_hash = '7b4e4e2c71905da44e86ce47adee2210b026ac18' | |
60 | + dtb_url = ('https://osdn.dl.osdn.net/users/37/37625/rx-virt.dtb') | |
61 | + dtb_hash = 'c69ee47d322285d1fc359d18d50b74e385b4d76c' | |
60 | 62 | dtb_path = self.fetch_asset(dtb_url, asset_hash=dtb_hash) |
61 | - kernel_url = ('http://acc.dl.osdn.jp/users/23/23845/zImage') | |
62 | - kernel_hash = '39a81067f8d72faad90866ddfefa19165d68fc99' | |
63 | + kernel_url = ('https://osdn.dl.osdn.net/users/37/37623/zImage') | |
64 | + kernel_hash = '7aa396cd62d81d05fb5f8d7e56154cf4bf20e029' | |
63 | 65 | kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash) |
64 | 66 | |
65 | 67 | self.vm.set_console() |
66 | 68 | kernel_command_line = self.KERNEL_COMMON_COMMAND_LINE + 'earlycon' |
67 | 69 | self.vm.add_args('-kernel', kernel_path, |
68 | 70 | '-dtb', dtb_path, |
69 | - '-no-reboot') | |
71 | + '-no-reboot', | |
72 | + '-append', kernel_command_line) | |
70 | 73 | self.vm.launch() |
71 | 74 | wait_for_console_pattern(self, 'Sash command shell (version 1.1.1)', |
72 | 75 | failure_message='Kernel panic - not syncing') |