File: tests.fmf

package info (click to toggle)
pcs 0.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,148 kB
  • sloc: python: 238,810; xml: 20,833; ruby: 13,203; makefile: 1,595; sh: 484
file content (115 lines) | stat: -rw-r--r-- 3,201 bytes parent folder | download
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# https://tmt.readthedocs.io/en/stable/spec/tests.html
component: pcs
duration: 30m
path: /
environment:
  CONFIGURE_OPTIONS: >-
      --enable-local-build
      --enable-individual-bundling
      --enable-dev-tests
      --enable-webui
      --enable-destructive-tests
  CONFIGURE_OPTIONS_DISTCHECK: >-
      --enable-local-build
      --enable-individual-bundling
  CONFIGURE_OPTIONS_RPM_BUILD: >-
      --enable-local-build
      --enable-webui
      --enable-destructive-tests

/autotools:
  summary: Build pcs to run tests
  tag: [autotools, distcheck, lint, python, ruby, tier0]
  test: |
    ./autogen.sh &&
    ./configure $CONFIGURE_OPTIONS &&
    make

/ruff_lint:
  summary: Run ruff linter
  tag: [lint]
  test: make ruff_lint

/ruff_format_check:
  summary: Run ruff format check
  tag: [lint]
  test: make ruff_format_check

/mypy:
  summary: Run mypy type checking
  tag: [lint]
  test: make mypy

/typos:
  summary: Run typos check
  tag: [lint]
  test: make typos_check

/python_tier0_tests:
  summary: Run python tier0 tests
  tag: [tier0, python]
  test: make tests_tier0

/ruby_tests:
  summary: Run ruby tier0 tests
  tag: [tier0, ruby]
  test: make pcsd-tests

/distcheck:
  summary: Run make distcheck
  tag: [distcheck]
  test: |
    make distcheck DISTCHECK_CONFIGURE_FLAGS="$CONFIGURE_OPTIONS_DISTCHECK" &&
    rename --verbose .tar. ".${COMPOSE_NAME}.tar." pcs*.tar.* &&
    mkdir -p dist &&
    cp -v pcs*.tar.* dist/ &&
    cp -rv dist $TMT_PLAN_DATA &&
    cp -rv dist $TMT_TEST_DATA

/autotools_rpmbuild:
  summary: Configure pcs to run rpm_build, tier1 and smoke tests
  tag: [autotools_rpmbuild, rpm_build, smoke, tier1]
  test: |
    ./autogen.sh &&
    ./configure $CONFIGURE_OPTIONS_RPM_BUILD &&
    make

/rpm_build:
  summary: Run make rpm to build a pcs package
  tag: [rpm_build, smoke, tier1]
  test: |
    make CI_BRANCH=${COMPOSE_NAME} rpm/pcs.spec &&
    dnf builddep -y rpm/pcs.spec &&
    make CI_BRANCH=${COMPOSE_NAME} rpm &&
    mkdir -p rpms &&
    cp -v $(find rpm  -type f -name '*.rpm' -not -name '*.src.rpm') rpms &&
    cp -rv rpms $TMT_PLAN_DATA &&
    cp -rv rpms $TMT_TEST_DATA

/python_tier1_tests:
  summary: Install pcs rpm and run pcs python tier1 tests
  tag: [tier1]
  duration: 1h
  # installing built pcs.rpm installs pacemaker, corosync, etc. as dependencies
  # rm -rf pcs - to make sure we are testing installed packages and not sources
  test: |
    dnf install -y \
      $TMT_PLAN_DATA/rpms/pcs-*${COMPOSE_NAME}*$(rpm -E %{dist}).*.rpm &&
    rm -rf pcs pcsd pcs_bundled &&
    pcs_test/suite -v --installed --tier1

/python_smoke_tests:
  summary: Install pcs rpm and run pcs smoke tests
  tag: [smoke]
   # installing built pcs.rpm installs pacemaker, corosync, etc. as dependencies
   # rm -rf pcs - to make sure we are testing installed packages and not sources
  test: |
    dnf install -y \
      $TMT_PLAN_DATA/rpms/pcs-*${COMPOSE_NAME}*$(rpm -E %{dist}).*.rpm &&
    rm -rf pcs pcsd pcs_bundled &&
    systemctl start pcsd &&
    sleep 2 &&
    pcs_test/smoke.sh &&
    mkdir -p {$TMT_PLAN_DATA,$TMT_TEST_DATA}/var/log/ &&
    cp -rv /var/log/pcsd $TMT_PLAN_DATA/var/log &&
    cp -rv /var/log/pcsd $TMT_TEST_DATA/var/log