tests/qtest: Add npcm7xx timer test
authorHavard Skinnemoen <hskinnemoen@google.com>
Thu, 8 Oct 2020 23:21:49 +0000 (16:21 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 20 Oct 2020 15:12:00 +0000 (16:12 +0100)
commit19d50149c857e50ccb1ee35dd4277f9d4954877f
treed2cfd6d85fca25ac3b17df486b7e4fdece178661
parentea04dce7bb4ccd3e464e5189c0d6d53510b7c212
tests/qtest: Add npcm7xx timer test

This test exercises the various modes of the npcm7xx timer. In
particular, it triggers the bug found by the fuzzer, as reported here:

https://lists.gnu.org/archive/html/qemu-devel/2020-09/msg02992.html

It also found several other bugs, especially related to interrupt
handling.

The test exercises all the timers in all the timer modules, which
expands to 180 test cases in total.

Reviewed-by: Tyrone Ting <kfting@nuvoton.com>
Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com>
Message-id: 20201008232154.94221-2-hskinnemoen@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
tests/qtest/meson.build
tests/qtest/npcm7xx_timer-test.c [new file with mode: 0644]