vaseboot/tests/help_test.in

20 lines
427 B
Plaintext

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