mbox series

[v2,0/4] tests/decode: Convert tests to meson

Message ID 20230526021228.1777917-1-richard.henderson@linaro.org
Headers show
Series tests/decode: Convert tests to meson | expand

Message

Richard Henderson May 26, 2023, 2:12 a.m. UTC
Add --test-for-error to decodetree.py and convert the tests to meson.
This exposes an exception error that had been hidden by the fact that
the script as a whole did exit with error.  Which proves that this is
a better way to run the tests.


r~


Richard Henderson (4):
  decodetree: Add --test-for-error
  decodetree: Fix recursion in prop_format and build_tree
  decodetree: Diagnose empty pattern group
  tests/decode: Convert tests to meson

 scripts/decodetree.py    | 19 ++++++++++---
 tests/decode/check.sh    | 24 ----------------
 tests/decode/meson.build | 59 ++++++++++++++++++++++++++++++++++++++++
 tests/meson.build        |  5 +---
 4 files changed, 75 insertions(+), 32 deletions(-)
 delete mode 100755 tests/decode/check.sh
 create mode 100644 tests/decode/meson.build

Comments

Philippe Mathieu-Daudé May 26, 2023, 9:06 a.m. UTC | #1
On 26/5/23 04:12, Richard Henderson wrote:

> Richard Henderson (4):
>    decodetree: Add --test-for-error
>    decodetree: Fix recursion in prop_format and build_tree
>    decodetree: Diagnose empty pattern group
>    tests/decode: Convert tests to meson

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>