[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 3/6] tests/acceptance: Test OpenBIOS on the P
From: |
Alex Bennée |
Subject: |
Re: [Qemu-devel] [PATCH v2 3/6] tests/acceptance: Test OpenBIOS on the PReP/40p |
Date: |
Tue, 17 Sep 2019 10:31:53 +0100 |
User-agent: |
mu4e 1.3.4; emacs 27.0.50 |
Cleber Rosa <address@hidden> writes:
> On Sun, Sep 15, 2019 at 11:19:37PM +0200, Philippe Mathieu-Daudé wrote:
>> User case from:
>> https://mail.coreboot.org/pipermail/openbios/2018-May/010360.html
>>
>> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
>> ---
>> tests/acceptance/ppc_prep_40p.py | 32 ++++++++++++++++++++++++++++++++
>> 1 file changed, 32 insertions(+)
>>
>> diff --git a/tests/acceptance/ppc_prep_40p.py
>> b/tests/acceptance/ppc_prep_40p.py
>> index a0eac40d9f..87b5311b89 100644
>> --- a/tests/acceptance/ppc_prep_40p.py
>> +++ b/tests/acceptance/ppc_prep_40p.py
>> @@ -82,3 +82,35 @@ class IbmPrep40pMachine(Test):
>> self.wait_for_console_pattern(fw_banner)
>> prompt_msg = 'Type any key to interrupt automatic startup'
>> self.wait_for_console_pattern(prompt_msg)
>> +
>> + def test_openbios_192m(self):
>> + """
>> + :avocado: tags=arch:ppc
>> + :avocado: tags=machine:40p
>> + """
>> + self.vm.set_machine('40p')
>> + self.vm.set_console()
>> + self.vm.add_args('-m', '192')
>
> Is 192 a magic number (some kind of limit)? Or just a value to check
> against later?
Just the memory configured for the machine, checked bellow. Or are you
wondering why 192m and not any other amount?
>> +
>> + self.vm.launch()
>> + self.wait_for_console_pattern('>> OpenBIOS')
>> + self.wait_for_console_pattern('>> Memory: 192M')
>> + self.wait_for_console_pattern('>> CPU type PowerPC,604')
>> +
>
> On my testing, this is a very stable test, I'm only getting PASSes.
<snip>
--
Alex Bennée
- [Qemu-devel] [PATCH] Acceptance tests: refactor wait_for_console_pattern, (continued)
- [Qemu-devel] [PATCH v2 2/6] tests/acceptance: Test Open Firmware on the PReP/40p, Philippe Mathieu-Daudé, 2019/09/15
- [Qemu-devel] [PATCH v2 3/6] tests/acceptance: Test OpenBIOS on the PReP/40p, Philippe Mathieu-Daudé, 2019/09/15
- [Qemu-devel] [PATCH v2 5/6] .travis.yml: Let the avocado job run the 40p tests, Philippe Mathieu-Daudé, 2019/09/15
- [Qemu-devel] [PATCH v2 4/6] tests/acceptance: Test Sandalfoot initrd on the PReP/40p, Philippe Mathieu-Daudé, 2019/09/15
- [Qemu-devel] [PATCH v2 6/6] .travis.yml: Split enterprise vs. hobbyist acceptance test job, Philippe Mathieu-Daudé, 2019/09/15