From 967cfa7e5c1bfb4d2cf78bb3de3dc6d36b78c440 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Thu, 14 Nov 2019 15:06:26 +0800 Subject: discover/grub2: implement 'source' command This change add support for the grub2 'source' command, executing a referenced script in the current parse context. We impose a limit of 10 (concurrent) source commands, to prevent infinite recursion. Signed-off-by: Jeremy Kerr --- test/parser/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/parser/Makefile.am') diff --git a/test/parser/Makefile.am b/test/parser/Makefile.am index c8e059b..5f1a93b 100644 --- a/test/parser/Makefile.am +++ b/test/parser/Makefile.am @@ -46,6 +46,10 @@ parser_TESTS = \ test/parser/test-grub2-lexer-error \ test/parser/test-grub2-parser-error \ test/parser/test-grub2-test-file-ops \ + test/parser/test-grub2-source \ + test/parser/test-grub2-source-functions \ + test/parser/test-grub2-source-recursion \ + test/parser/test-grub2-source-recursion-infinite \ test/parser/test-grub2-single-yocto \ test/parser/test-grub2-blscfg-default-filename \ test/parser/test-grub2-blscfg-default-index \ -- cgit v1.2.1