agama/service/test/fixtures/profiles/smoke-test.sh
Martin Vidner 889ab9c563 /api/profile/execute_script do not block server by waiting for completion
wait only 50ms for a quick failure
test for both
2025-04-02 16:53:39 +02:00

10 lines
303 B
Bash

#!/bin/bash
# A smoke test: does not fail and leaves a message in the journal
# Runs for 10s to test asyc execution
DATE=$(date)
# interpolation avoids line splitting in journalctl
echo "Smoke test of installation via script, running at ${DATE}"
for i in `seq 5`; do
echo Sleep $i of 5
sleep 2
done