[CRYPTOMOUNT-TEST 7/7] test: Add cryptomount test.

2020-08-16 Thread Glenn Washburn
Signed-off-by: Glenn Washburn --- Makefile.util.def | 6 ++ tests/grub_cmd_cryptomount.in | 156 ++ 2 files changed, 162 insertions(+) create mode 100644 tests/grub_cmd_cryptomount.in diff --git a/Makefile.util.def b/Makefile.util.def index cfc71f1a

[CRYPTOMOUNT-TEST 6/7] tests: Add grub-shell-luks-tester to facilitate functional LUKS1/2 testing.

2020-08-16 Thread Glenn Washburn
Signed-off-by: Glenn Washburn --- Makefile.util.def| 6 + tests/util/grub-shell-luks-tester.in | 319 +++ 2 files changed, 325 insertions(+) create mode 100644 tests/util/grub-shell-luks-tester.in diff --git a/Makefile.util.def b/Makefile.util.def i

[CRYPTOMOUNT-TEST 3/7] grub-shell: Allow specifying non-default trim line contents.

2020-08-16 Thread Glenn Washburn
This will be useful for tests that have unwanted output from setup. This is not documented because its only intended at the moment. Also, --no-trim is allowed to explicitly turn off trim. Signed-off-by: Glenn Washburn --- tests/util/grub-shell.in | 14 +- 1 file changed, 9 insertions

[CRYPTOMOUNT-TEST 2/7] cryptodisk: Allow cryptomount password to be specified as argument.

2020-08-16 Thread Glenn Washburn
Signed-off-by: Glenn Washburn --- grub-core/disk/cryptodisk.c | 30 ++ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c index 031e9dd97..5502a6958 100644 --- a/grub-core/disk/cryptodisk.c +++ b/gr

[CRYPTOMOUNT-TEST 1/7] cryptodisk: Improve cryptomount short help string.

2020-08-16 Thread Glenn Washburn
Signed-off-by: Glenn Washburn --- grub-core/disk/cryptodisk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c index dd94736d3..031e9dd97 100644 --- a/grub-core/disk/cryptodisk.c +++ b/grub-core/disk/cryptodisk.c @@ -1

[CRYPTOMOUNT-TEST 5/7] grub-shell: Only show grub-mkrescue output if it returns an error.

2020-08-16 Thread Glenn Washburn
The previous behavior ignored an error and the output from grub-mkrescue. This made it a pain to discover that grub-mkrescue was the reason that tests which rely on grub-shell were failing. Even after discovering grub-mkrescue was the culprit, there was no output to indicate why it was failing. I

[CRYPTOMOUNT-TEST 0/7] Add LUKS1/2 tests for cryptomount

2020-08-16 Thread Glenn Washburn
Grub maintainers, Here is a patch set that adds functional testing for cryptomount with LUKS1/2 volumes. Also added is a required patch to add a new -p option to cryptomount for specifying passwords on the command line and importantly by-passing user input from the terminal. Currently, I rely he

[CRYPTOMOUNT-TEST 4/7] grub-shell: Trim line should always be matched from the beginning of the line.

2020-08-16 Thread Glenn Washburn
Signed-off-by: Glenn Washburn --- tests/util/grub-shell.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in index b409962f1..602b16f3e 100644 --- a/tests/util/grub-shell.in +++ b/tests/util/grub-shell.in @@ -343,7 +343,7 @