This mirrors: dd5c28916c
Changes to builddir structure in RPM 4.20 broke the old script for
patching sources. Luckily, we can now patch sources with tmt.
Gone is also list of packages needed for testing,
build dependencies will be installed by tmt instead.
Name of the gating plan was changed to remove confusion with
gating.yaml. The prepare script was also renamed to better reflect what
it does.
The prepare script should be run in prepare, but TMT_SOURCE_DIR doesn't
exist in that step yet. The workaround is to run the prepre script
before every test to allow for running all tests by itself. However, the
script can only run once because it removes pcs folder which breaks
autotools. This is done by creating a stamp file that prevents the
script from running if it already ran.
33 lines
854 B
Plaintext
33 lines
854 B
Plaintext
summary: PCS gating test plan
|
|
description: Runs upstream tier0, tier1 and smoke tests
|
|
|
|
discover:
|
|
dist-git-source: true
|
|
dist-git-install-builddeps: true
|
|
how: shell
|
|
tests:
|
|
- name: tier0
|
|
test: |
|
|
./prepare-tests.sh
|
|
$TMT_SOURCE_DIR/pcs-*/pcs_test/suite --tier0 -v --vanilla --installed
|
|
duration: 10m
|
|
tier: 0
|
|
tag: fast
|
|
- name: tier1
|
|
test: |
|
|
./prepare-tests.sh
|
|
$TMT_SOURCE_DIR/pcs-*/pcs_test/suite --tier1 -v --vanilla --installed
|
|
duration: 2h
|
|
tier: 1
|
|
- name: smoke
|
|
test: |
|
|
systemctl start pcsd
|
|
./prepare-tests.sh
|
|
$TMT_SOURCE_DIR/pcs-*/pcs_test/smoke.sh
|
|
duration: 10m
|
|
tier: smoke
|
|
tag: fast
|
|
|
|
execute:
|
|
how: tmt
|