qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 5/5] tests/qtest : Add testcase for DM163


From: Thomas Huth
Subject: Re: [PATCH v4 5/5] tests/qtest : Add testcase for DM163
Date: Mon, 15 Apr 2024 07:11:57 +0200
User-agent: Mozilla Thunderbird

On 14/04/2024 15.05, Inès Varhol wrote:
`test_dm163_bank()`
Checks that the pin "sout" of the DM163 led driver outputs the values
received on pin "sin" with the expected latency (depending on the bank).

`test_dm163_gpio_connection()`
Check that changes to relevant STM32L4x5 GPIO pins are propagated to the
DM163 device.

Signed-off-by: Arnaud Minier <arnaud.minier@telecom-paris.fr>
Signed-off-by: Inès Varhol <ines.varhol@telecom-paris.fr>
---
  tests/qtest/dm163-test.c | 192 +++++++++++++++++++++++++++++++++++++++
  tests/qtest/meson.build  |   5 +
  2 files changed, 197 insertions(+)
  create mode 100644 tests/qtest/dm163-test.c
...
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index 36c5c13a7b..2c6fd4ebbb 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -207,6 +207,9 @@ qtests_stm32l4x5 = \
     'stm32l4x5_rcc-test',
     'stm32l4x5_gpio-test']
+qtests_dm163 = \
+  ['dm163-test']

Do you plan to add more tests to qtests_dm163 later? If no, it might be more straight forward to inline ['dm163-test'] in the hunk below instead.

  qtests_arm = \
    (config_all_devices.has_key('CONFIG_MPS2') ? ['sse-timer-test'] : []) + \
    (config_all_devices.has_key('CONFIG_CMSDK_APB_DUALTIMER') ? 
['cmsdk-apb-dualtimer-test'] : []) + \
@@ -222,6 +225,8 @@ qtests_arm = \
    (config_all_devices.has_key('CONFIG_MICROBIT') ? ['microbit-test'] : []) + \
    (config_all_devices.has_key('CONFIG_STM32L4X5_SOC') ? qtests_stm32l4x5 : 
[]) + \
    (config_all_devices.has_key('CONFIG_FSI_APB2OPB_ASPEED') ? 
['aspeed_fsi-test'] : []) + \
+  (config_all_devices.has_key('CONFIG_STM32L4X5_SOC') and
+   config_all_devices.has_key('CONFIG_DM163')? qtests_dm163 : []) + \

With qtests_dm163 preferably replaced by ['dm163-test'] :
Acked-by: Thomas Huth <thuth@redhat.com>






reply via email to

[Prev in Thread] Current Thread [Next in Thread]