Bootstrap CI tests from internal RHEL dist-git branch
Resolves: rhbz#2174845 Signed-off-by: Tomáš Hozza <thozza@redhat.com>
This commit is contained in:
parent
95c3cdc2d7
commit
811319730b
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
1
|
8
plans/integration-tests.fmf
Normal file
8
plans/integration-tests.fmf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
summary: Run integration tests
|
||||||
|
prepare:
|
||||||
|
how: install
|
||||||
|
package:
|
||||||
|
- osbuild-composer-tests
|
||||||
|
execute:
|
||||||
|
script: ./tests/scripts/run_tests.sh ./tests/
|
||||||
|
duration: 24h
|
6
plans/unit-tests.fmf
Normal file
6
plans/unit-tests.fmf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
summary: Run unit tests from source
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
dist-git-source: true
|
||||||
|
execute:
|
||||||
|
how: tmt
|
19
tests/scripts/run_tests.sh
Executable file
19
tests/scripts/run_tests.sh
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euxo pipefail
|
||||||
|
|
||||||
|
TOPDIR=$1
|
||||||
|
|
||||||
|
# Print some information about the machine
|
||||||
|
df -h
|
||||||
|
free -h
|
||||||
|
rpm -qa
|
||||||
|
find /etc/yum.repos.d -type f -print -exec cat {} \;
|
||||||
|
|
||||||
|
# Run only basic smoke tests.
|
||||||
|
# Our test-suite is currently very thorough and it builds a lot of images.
|
||||||
|
# On some runs, TFT was able to build one image for 25 minutes. Our test
|
||||||
|
# suite builds more than 25 images which means that the full test-suite
|
||||||
|
# can run for more than 10 hours. That's just too slow and since we are also
|
||||||
|
# able to run downstream tests on our much faster upstream infrastructure.
|
||||||
|
# I think that it's enough to do just smoke tests here.
|
||||||
|
/usr/libexec/tests/osbuild-composer/base_tests.sh || cat /var/lib/osbuild-composer/jobs/*
|
5
tests/unit.fmf
Normal file
5
tests/unit.fmf
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
summary: Run unit tests
|
||||||
|
require:
|
||||||
|
- golang
|
||||||
|
test: cd ../osbuild-composer-*/ && sudo dnf builddep -y osbuild-composer.spec && GOFLAGS=-mod=vendor go test ./...
|
||||||
|
duration: 1h
|
Loading…
Reference in New Issue
Block a user