add cockpit CI glue
This commit is contained in:
parent
5d89be7665
commit
130c7a0843
1 changed files with 13 additions and 3 deletions
16
test/run
16
test/run
|
|
@ -1,5 +1,5 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
set -eu
|
set -eux
|
||||||
|
|
||||||
# This is the expected entry point for Cockpit CI; will be called without
|
# This is the expected entry point for Cockpit CI; will be called without
|
||||||
# arguments but with an appropriate $TEST_OS, and optionally $TEST_SCENARIO
|
# arguments but with an appropriate $TEST_OS, and optionally $TEST_SCENARIO
|
||||||
|
|
@ -8,5 +8,15 @@ TEST_SCENARIO="${TEST_SCENARIO:-}"
|
||||||
[ "${TEST_SCENARIO}" = "${TEST_SCENARIO##firefox}" ] || export TEST_BROWSER=firefox
|
[ "${TEST_SCENARIO}" = "${TEST_SCENARIO##firefox}" ] || export TEST_BROWSER=firefox
|
||||||
export RUN_TESTS_OPTIONS=--track-naughties
|
export RUN_TESTS_OPTIONS=--track-naughties
|
||||||
|
|
||||||
make codecheck
|
make prepare-check
|
||||||
make 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
|
||||||
|
|
||||||
|
./bidi-test.py
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue