labwc/scripts/ci/ci_autostart.sh

18 lines
277 B
Bash
Raw Permalink Normal View History

2024-03-13 15:26:16 +01:00
#!/usr/bin/env bash
2024-11-26 04:30:38 +01:00
exec 1>&2
2024-03-13 15:26:16 +01:00
if test -z "$LABWC_PID"; then
echo "LABWC_PID not set" >&2
exit 1
fi
echo "Running with pid $LABWC_PID"
2024-11-26 04:30:38 +01:00
# Runtime tests
echo "Executing foot"
foot sh -c 'sleep 1; exit'
echo "Foot exited with $?"
2024-03-13 15:26:16 +01:00
2024-11-26 04:30:38 +01:00
echo "Killing labwc"
2024-03-13 15:26:16 +01:00
kill -s TERM $LABWC_PID