Use path based SHELL in Makefiles. It was suggested that this is a better solution for make for cases when there is no /usr/bin/env. See: https://github.com/purpleidea/mgmt/pull/694#discussion_r1015596204
18 lines
500 B
Bash
Executable File
18 lines
500 B
Bash
Executable File
#!/usr/bin/env -S bash -e
|
|
# NOTES:
|
|
# * this is a simple shell based `mgmt` test case
|
|
# * it is recommended that you run mgmt wrapped in the timeout command
|
|
# * it is recommended that you run mgmt with --no-watch
|
|
# * it is recommended that you run mgmt --converged-timeout=<seconds>
|
|
# * you can run mgmt with --max-runtime=<seconds> in special scenarios
|
|
|
|
. "$(dirname "$0")/../util.sh"
|
|
|
|
set -o errexit
|
|
set -o pipefail
|
|
|
|
$TIMEOUT "$MGMT" --help # hello world!
|
|
pid=$!
|
|
wait $pid # get exit status
|
|
exit $?
|