tests/qtest: add qtests for npcm7xx sdhci
PATCH v2 1/1 tests/qtest: add qtests for npcm7xx sdhci
From: Shengtan Mao <[email protected]>
---
v2:
* update copyright year
* check result of open
* use g_free instead of free
* move declarations to the top
* use g_file_open_tmp
--- tests/qtest/meson.build | 1 + tests/qtest/npcm7xx_sdhci-test.c | 214 +++++++++++++++++++++++++++++++ 2 files changed, 215 insertions(+) create mode 100644 tests/qtest/npcm7xx_sdhci-test.c
tests/qtest/meson.build +1 -0
@@ -189,6 +189,7 @@ qtests_npcm7xx = \ 'npcm7xx_gpio-test', 'npcm7xx_pwm-test', 'npcm7xx_rng-test', + 'npcm7xx_sdhci-test', 'npcm7xx_smbus-test', 'npcm7xx_timer-test', 'npcm7xx_watchdog_timer-test'] + \
tests/qtest/npcm7xx_sdhci-test.c new file +214 -0
214 lines not on this page · raw message
Signature · 1 line
2.35.0.263.gb82422642f-goog
Quoted 7 lines · Patrick Venture
From: Shengtan Mao <[email protected]>
Reviewed-by Hao Wu <[email protected]>Reviewed-by Chris Rauer <[email protected]>Signed-off-by Shengtan Mao <[email protected]>Signed-off-by Patrick Venture <[email protected]>
Quoted 7 lines
---
v2:
* update copyright year
* check result of open
* useg_freeinstead of free
* move declarations to the top
* useg_file_open_tmp
Fails to compile:
../../tests/qtest/npcm7xx_sdhci-test.c:121:32: error: use of undeclared identifier 'NPCM7XX_REG_SIZE'
uint64_t end_addr = addr + NPCM7XX_REG_SIZE;
^-- PMM
Quoted 16 lines · Peter Maydell
Quoted 7 lines · Patrick Venture
From: Shengtan Mao <[email protected]>
Reviewed-by Hao Wu <[email protected]>Reviewed-by Chris Rauer <[email protected]>Signed-off-by Shengtan Mao <[email protected]>Signed-off-by Patrick Venture <[email protected]>Quoted 7 lines
---
v2:
* update copyright year
* check result of open
* useg_freeinstead of free
* move declarations to the top
* useg_file_open_tmp
Quoted 7 lines
Fails to compile:
../../tests/qtest/npcm7xx_sdhci-test.c:121:32: error: use of undeclared identifier 'NPCM7XX_REG_SIZE'uint64_t end_addr = addr + NPCM7XX_REG_SIZE; ^
Thanks. I must have only compiled at a part-way point while tweaking it. I'll see if it compiles for me, and then figure out why it does when it doesn't, or if it doesn't, then obviously fix it. Either way, will fix in v3, thanks.
Quoted 4 lines
-- PMM
Quoted 29 lines · Patrick Venture
Quoted 16 lines · Peter Maydell
Quoted 7 lines · Patrick Venture
From: Shengtan Mao <[email protected]>
Reviewed-by Hao Wu <[email protected]>Reviewed-by Chris Rauer <[email protected]>Signed-off-by Shengtan Mao <[email protected]>Signed-off-by Patrick Venture <[email protected]>Quoted 7 lines
---
v2:
* update copyright year
* check result of open
* useg_freeinstead of free
* move declarations to the top
* useg_file_open_tmpQuoted 7 lines
Fails to compile:
../../tests/qtest/npcm7xx_sdhci-test.c:121:32: error: use of undeclared identifier 'NPCM7XX_REG_SIZE'uint64_t end_addr = addr + NPCM7XX_REG_SIZE; ^
Quoted 5 lines
Thanks. I must have only compiled at a part-way point while tweaking it. I'll see if it compiles for me, and then figure out why it does when it doesn't, or if it doesn't, then obviously fix it. Either way, will fix in v3, thanks.
Validated that when I build it, it's not getting built :) So that's why this slipped through. I'll dig into the history to see what this value should be now.
Quoted 7 lines
Quoted 6 lines
-- PMM