help_test.in 360 B

1234567891011121314151617
  1. #! /bin/bash
  2. set -e
  3. . "@builddir@/grub-core/modinfo.sh"
  4. template="Usage: help [PATTERN ...]
  5. Show a help message.
  6. -h, --help Display this help and exit.
  7. -u, --usage Display the usage of this command and exit.
  8. Hello World"
  9. outpu="$(echo 'help help; hello' | @builddir@/grub-shell)"
  10. if [ "$template" != "$outpu" ]; then
  11. exit 1
  12. fi