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
34 lines
608 B
Bash
Executable File
34 lines
608 B
Bash
Executable File
#!/usr/bin/env -S bash -e
|
|
|
|
# FIXME: test for #124 --- Disabled for now
|
|
|
|
exit 0
|
|
|
|
. "$(dirname "$0")/../util.sh"
|
|
|
|
mkdir -p /tmp/mgmt/a/b/c/
|
|
|
|
# run empty graph, with prometheus support
|
|
$TIMEOUT "$MGMT" run --tmp-prefix yaml examples/deep-dirs.yaml &
|
|
pid=$!
|
|
sleep 10s # let it converge
|
|
|
|
grep f1 /tmp/mgmt/a/b/c/f1
|
|
|
|
echo 'f2!' > /tmp/mgmt/a/b/c/f1
|
|
|
|
grep f1 /tmp/mgmt/a/b/c/f1
|
|
|
|
rm -rf /tmp/mgmt/a/b/C/ || true
|
|
mv /tmp/mgmt/a/b/c /tmp/mgmt/a/b/C/
|
|
|
|
mkdir -p /tmp/mgmt/a/b/c
|
|
|
|
echo 'f2!' > /tmp/mgmt/a/b/c/f1
|
|
|
|
grep f1 /tmp/mgmt/a/b/c/f1
|
|
|
|
killall -SIGINT mgmt # send ^C to exit mgmt
|
|
wait $pid # get exit status
|
|
exit $?
|