[LTP] [PATCH 0/9] Metadata parser fixes
Cyril Hrubis
chrubis@suse.cz
Wed Dec 18 20:00:20 CET 2024
This fixes a few metadata parser bugs, mostly array and structure
initializers. After this patchset the .save_restore entries should be
well formatted and we can make the shell version 1:1 with the C parsed
metadata.
The TODO is the filesystem parsing which uses named initializers (e.g.
.fs_type = "ext3") and the structure field names end up in the result
verbatim. Rather than that the parser should make it a JSON object
instead. I will fix that later on.
Cyril Hrubis (9):
metadata: metaparse: Parse operators *, +, and | properly
metadata: metaparse: Implement recursive include
metadata: metaparse: Apply macros in arrays.
metadata: data_storage: Add JSON null type
metadata: data_storage: Add two array functions
metadata: metaparse: Better array parsing.
metadata: metaparse: Ignore ',' in array inside parenthesis
metadata: metaparse: Add a few pre-defined macros
metadata: parse.sh: Add -Itestcases/kernel/include
metadata/data_storage.h | 53 ++++++++++-
metadata/metaparse.c | 195 ++++++++++++++++++++++++++++++++++------
metadata/parse.sh | 2 +-
3 files changed, 221 insertions(+), 29 deletions(-)
--
2.45.2
More information about the ltp
mailing list