[LTP] [PATCH 0/7] docparse improvements

Cyril Hrubis
2021-10-18T15:47:40Z

Implement support for various missing bits to the docparse tool and
enables it unconditionally so that the metadata.json file is present on
all builds.

This is first part of bigger effort to get the metadata useful for the
testrunners, expecially we need the .test_variants field to be properly
parsed in order to compute the overall test runtime correctly.

Cyril Hrubis (7):
docparse: Implement #define and #include
docparse: Add tests
docparse: data_storage: Add integer type node
docparse: Implement ARRAY_SIZE()
docparse: Add type normalization
docparse: Group data to 'testsuite' and 'defaults'
docparse/Makefile: Do not abort on missing generators

Makefile | 5 +-
docparse/Makefile | 4 -
docparse/data_storage.h | 45 +++
docparse/docparse.c | 466 ++++++++++++++++++++++++++-
docparse/parse.sh | 18 +-
docparse/testinfo.pl | 16 +-
docparse/tests/array_size01.c | 5 +
docparse/tests/array_size01.c.out | 4 +
docparse/tests/array_size02.c | 5 +
docparse/tests/array_size02.c.out | 4 +
docparse/tests/array_size03.c | 10 +
docparse/tests/array_size03.c.out | 4 +
docparse/tests/array_size04.c | 5 +
docparse/tests/array_size04.c.out | 4 +
docparse/tests/empty_struct.c | 2 +
docparse/tests/empty_struct.c.out | 3 +
docparse/tests/expand_flags.c | 3 +
docparse/tests/expand_flags.c.out | 6 +
docparse/tests/include.c | 5 +
docparse/tests/include.c.out | 4 +
docparse/tests/include.h | 7 +
docparse/tests/macro.c | 5 +
docparse/tests/macro.c.out | 4 +
docparse/tests/multiline_macro.c | 6 +
docparse/tests/multiline_macro.c.out | 4 +
docparse/tests/tags.c | 7 +
docparse/tests/tags.c.out | 13 +
docparse/tests/test.sh | 18 ++
m4/ltp-docparse.m4 | 3 -
29 files changed, 644 insertions(+), 41 deletions(-)
create mode 100644 docparse/tests/array_size01.c
create mode 100644 docparse/tests/array_size01.c.out
create mode 100644 docparse/tests/array_size02.c
create mode 100644 docparse/tests/array_size02.c.out
create mode 100644 docparse/tests/array_size03.c
create mode 100644 docparse/tests/array_size03.c.out
create mode 100644 docparse/tests/array_size04.c
create mode 100644 docparse/tests/array_size04.c.out
create mode 100644 docparse/tests/empty_struct.c
create mode 100644 docparse/tests/empty_struct.c.out
create mode 100644 docparse/tests/expand_flags.c
create mode 100644 docparse/tests/expand_flags.c.out
create mode 100644 docparse/tests/include.c
create mode 100644 docparse/tests/include.c.out
create mode 100644 docparse/tests/include.h
create mode 100644 docparse/tests/macro.c
create mode 100644 docparse/tests/macro.c.out
create mode 100644 docparse/tests/multiline_macro.c
create mode 100644 docparse/tests/multiline_macro.c.out
create mode 100644 docparse/tests/tags.c
create mode 100644 docparse/tests/tags.c.out
create mode 100755 docparse/tests/test.sh

--
2.32.0