Add FMF test metadata and scripts
Copy and adjust the browser.sh and run-test.sh scripts from cockpit-podman, which we have used in Fedora/RHEL dist-git gating and packit tests for a while.
This commit is contained in:
parent
603308d424
commit
09823650e2
5 changed files with 101 additions and 0 deletions
25
test/browser/run-test.sh
Executable file
25
test/browser/run-test.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
set -eux
|
||||
|
||||
# tests need cockpit's bots/ libraries and test infrastructure
|
||||
cd $SOURCE
|
||||
git init
|
||||
make bots test/common
|
||||
|
||||
# only install a subset to save time/space
|
||||
rm -f package-lock.json # otherwise the command below installs *everything*, argh
|
||||
npm install chrome-remote-interface sizzle
|
||||
|
||||
. /etc/os-release
|
||||
export TEST_OS="${ID}-${VERSION_ID/./-}"
|
||||
export TEST_AUDIT_NO_SELINUX=1
|
||||
|
||||
EXCLUDES=""
|
||||
|
||||
RC=0
|
||||
test/common/run-tests --nondestructive --machine 127.0.0.1:22 --browser 127.0.0.1:9090 $EXCLUDES || RC=$?
|
||||
|
||||
echo $RC > "$LOGS/exitcode"
|
||||
cp --verbose Test* "$LOGS" || true
|
||||
# deliver test result via exitcode file
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue