Files
mosh/src/tests/e2e-success.test
T
Anders Kaseorg 8a8f2b29ca Fix most shell hygiene issues found by shellcheck
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-04 03:15:03 -04:00

28 lines
475 B
Bash
Executable File

#!/bin/sh
# shellcheck source=e2e-test-subrs
. "$(dirname "$0")/e2e-test-subrs"
PATH=$PATH:.:$srcdir
# Top-level wrapper.
if [ $# -eq 0 ]; then
e2e-test "$0" baseline direct variant verify same
exit
fi
# OK, we have arguments, we're one of the test hooks.
if [ $# -ne 1 ]; then
fail "bad arguments %s\n" "$@"
fi
baseline()
{
printf "\033[H\033[J"
}
case $1 in
baseline|direct|variant)
baseline;;
*)
fail "unknown test argument %s\n" "$1";;
esac