starter-kit/test/run
2024-07-17 08:57:57 +02:00

23 lines
548 B
Bash
Executable file

#! /bin/sh
set -eux
# This is the expected entry point for Cockpit CI; will be called without
# arguments but with an appropriate $TEST_OS, and optionally $TEST_SCENARIO
TEST_SCENARIO="${TEST_SCENARIO:-}"
[ "${TEST_SCENARIO}" = "${TEST_SCENARIO##firefox}" ] || export TEST_BROWSER=firefox
export RUN_TESTS_OPTIONS=--track-naughties
# make codecheck
make prepare-check
bots/machine/testvm.py $TEST_OS &
VM_PID=$!
trap "kill $VM_PID" EXIT INT QUIT PIPE
# Wait for the VM to be ready
until nc -z 127.0.0.2 2201; do
sleep 1
done
node bidi.js