[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 07/14] tests: Add bbc:microbit / nRF51 test s
From: |
Steffen Görtz |
Subject: |
Re: [Qemu-devel] [PATCH v5 07/14] tests: Add bbc:microbit / nRF51 test suite |
Date: |
Sun, 25 Nov 2018 19:35:13 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 |
Hi Thomas,
thank you for your remarks!
>> +int main(int argc, char **argv)
>> +{
>> + int ret;
>> +
>> + g_test_init(&argc, &argv, NULL);
>> +
>> + global_qtest = qtest_initf("-machine microbit");
>> +
>> + qtest_add_func("/microbit/nrf51/nvmc", test_nrf51_nvmc);
>> +
>> + ret = g_test_run();
>> +
>> + qtest_quit(global_qtest);
>> + return ret;
>> +}
>
> If you could do me a big favour, then please try to write new qtests
> without the global_qtest variable. I.e. move the qtest_initf into the
> test_nrf51_nvmc function and pass around the local test state variable
> there to qtest_writel() and friends. I just started yet another clean up
> attempt for some other files, e.g. see here:
>
> https://lists.gnu.org/archive/html/qemu-devel/2018-11/msg02196.html
>
> (but if this is too much cumbersome right now for you, I also won't
> object this patch in the current shape - we can still clean this up later)
>
I would like to leave the test like this at the moment. We will add additional
devices in the future and i would like to postpone refactoring of the test
until the current patch series is merged.
Best,
Steffen
- [Qemu-devel] [PATCH v5 00/14] arm: nRF51 Devices and Microbit Support, Steffen Görtz, 2018/11/12
- [Qemu-devel] [PATCH v5 04/14] arm: Instantiate NRF51 random number generator, Steffen Görtz, 2018/11/12
- [Qemu-devel] [PATCH v5 03/14] hw/misc/nrf51_rng: Add NRF51 random number generator peripheral, Steffen Görtz, 2018/11/12
- [Qemu-devel] [PATCH v5 06/14] arm: Instantiate NRF51 special NVM's and NVMC, Steffen Görtz, 2018/11/12
- [Qemu-devel] [PATCH v5 08/14] hw/gpio/nrf51_gpio: Add nRF51 GPIO peripheral, Steffen Görtz, 2018/11/12