/
c9s.fmf
63 lines (58 loc) · 1.9 KB
/
c9s.fmf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
summary: TMT/TFT plan for running container tests on CentOS Stream 9
description: |
Run container tests on CentOS Stream 9
prepare:
- name: Clone repository and switch to corresponding PR
how: shell
script: |
dnf install -y git ansible
git clone $REPO_URL /root/$REPO_NAME
cd /root/$REPO_NAME
git fetch origin +refs/pull/*:refs/remotes/origin/pr/*
git checkout origin/pr/$PR_NUMBER/head
git submodule update --init
execute:
how: tmt
/test-ci:
enabled: true
adjust:
- because: "Plan to be ran when either executed locally, or executed by CI system"
when: >-
trigger is defined
and trigger == code
enabled: false
prepare+:
- name: Enable repositories and prepare machine for tests
how: ansible
playbook:
- tmt-testing-plan-c9s.yml
extra-vars: -vvv
discover:
how: shell
tests:
- name: '$OS, container: $REPO_NAME, version: $SINGLE_VERSION'
framework: shell
test: cd /root/$REPO_NAME && make $TEST_NAME TARGET=$OS SINGLE_VERSION=$SINGLE_VERSION
duration: 3h
/test-plan:
enabled: false
adjust:
- because: "Plan to be ran for checking if packages and files are present as we want"
when: >-
trigger is defined
and trigger == code
enabled: true
prepare+:
- name: Enable repositories and prepare machine for tests
how: shell
script: |
cd /root/$REPO_NAME
git status
ansible-playbook --connection=local --inventory=127.0.0.1, --limit=127.0.0.1 tmt-testing-plan-c9s.yml -vvv
discover:
how: shell
tests:
- name: Run sclorg-testing-farm tests
framework: shell
test: cd /root/$REPO_NAME && git status && OS="$OS" ansible-playbook tmt-sclorg-testing-plan.yml
duration: 1h