Skip to contentSkip to conversation

tests/qtest: add qtests for npcm7xx sdhci

PATCH Superseded Patrick Venture 2 participants 4 messages Feb 6, 2022 – Feb 8, 2022 Arm/Amlogic Meson SoC support

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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
index 842b1df420..2b566999cd 100644
@@ -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
#1 lore raw
Quoted 7 lines · Patrick Venture

From: Shengtan Mao <[email protected]>

Quoted 7 lines

---
v2:
* update copyright year
* check result of open
* use g_free instead of free
* move declarations to the top
* use g_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

#2 lore raw
Quoted 16 lines · Peter Maydell
Quoted 7 lines · Patrick Venture

From: Shengtan Mao <[email protected]>

Quoted 7 lines

---
v2:
* update copyright year
* check result of open
* use g_free instead of free
* move declarations to the top
* use g_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

#3 lore raw
Quoted 29 lines · Patrick Venture
Quoted 16 lines · Peter Maydell
Quoted 7 lines · Patrick Venture

From: Shengtan Mao <[email protected]>

Quoted 7 lines

---
v2:
* update copyright year
* check result of open
* use g_free instead of free
* move declarations to the top
* use g_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;
                               ^
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