help_test.in 418 B

1234567891011121314151617181920
  1. #! @BUILD_SHEBANG@
  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. To enable less(1)-like paging, \"set pager=1\".
  9. Hello World"
  10. output="$(echo 'help help; hello' | @builddir@/grub-shell)"
  11. if [ "$template" != "$output" ]; then
  12. exit 1
  13. fi