]> git.proxmox.com Git - grub2.git/blob - tests/help_test.in
Import grub2_2.02+dfsg1.orig.tar.xz
[grub2.git] / tests / help_test.in
1 #! /bin/bash
2 set -e
3
4 . "@builddir@/grub-core/modinfo.sh"
5
6 template="Usage: help [PATTERN ...]
7 Show a help message.
8
9 -h, --help Display this help and exit.
10 -u, --usage Display the usage of this command and exit.
11 Hello World"
12 outpu="$(echo 'help help; hello' | @builddir@/grub-shell)"
13
14 if [ "$template" != "$outpu" ]; then
15 exit 1
16 fi