diff options
Diffstat (limited to '')
-rw-r--r-- | tests/help_test.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/help_test.in b/tests/help_test.in new file mode 100644 index 0000000..b08cf20 --- /dev/null +++ b/tests/help_test.in @@ -0,0 +1,16 @@ +#! @BUILD_SHEBANG@ +set -e + +. "@builddir@/grub-core/modinfo.sh" + +template="Usage: help [PATTERN ...] +Show a help message. + +-h, --help Display this help and exit. +-u, --usage Display the usage of this command and exit. +Hello World" +outpu="$(echo 'help help; hello' | @builddir@/grub-shell)" + +if [ "$template" != "$outpu" ]; then + exit 1 +fi |