File: main.fmf

package info (click to toggle)
dogtail 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,108 kB
  • sloc: python: 8,020; makefile: 45; sh: 7
file content (305 lines) | stat: -rw-r--r-- 9,851 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
/plan:
    summary:
        Run all dogtail tests.
    discover:
        how: fmf

        # Used when running by hand to specify branches.
        # url: https://gitlab.com/dogtail/dogtail.git
        # ref: <branch>

    provision:
        how: virtual
        hw:
          memory: ">= 4 GB"

        # Specify usage of rhel-10 and api token
        # api-key: ${TESTING_FARM_API_TOKEN} # Use a secure CI/CD variable

    # # Local VM testing.
    # provision:
    #    how: connect
    #    user: root
    #    guest: 192.168.122.92

    prepare:
      - name: packages
        how: install
        package:
          - gtk3-devel
          - gtk4-devel-tools
          - gnome-ponytail-daemon
          - python3-gnome-ponytail-daemon
          - python3-pip
          - python3-psutil
          - python3-devel

    # Debugging logind issues.
    #  - name: logind_debug_setup
    #    how: shell
    #    script: |
    #      mkdir /etc/systemd/system/systemd-logind.service.d/
    #      touch /etc/systemd/system/systemd-logind.service.d/10-debug.conf
    #      cat > /etc/systemd/system/systemd-logind.service.d/10-debug.conf << EOL
    #      [Service]
    #      Environment=SYSTEMD_LOG_LEVEL=debug
    #      EOL
    #      sleep 1
    #      cat /etc/systemd/system/systemd-logind.service.d/10-debug.conf

      - name: group_install
        how: shell
        script:
        # Red Hat
        #  dnf group install -y "Server with GUI" --allowerasing
        # Fedora/Centos - important.
         dnf install -y @gnome-desktop --allowerasing
      - name: pip3
        how: shell
        script:
          - python3 -m pip install build
      - name: dogtail
        how: shell
        script: |
          echo "Starting the Python build process..."
          python3 -m build
          python3 -m pip install dist/dogtail-2.0.dev0-py3-none-any.whl --force-reinstall
      - name: user_setup
        how: shell
        script: |
          sudo useradd test -G wheel
          echo "redhat" | passwd test --stdin
          echo "Defaults:test !env_reset" >> /etc/sudoers
          echo "test ALL=(ALL)   NOPASSWD: ALL" >> /etc/sudoers
    execute:
      how: tmt

    # report:
      # Use the GitLab reporting plugin
      # how: display

      # The API URL of your GitLab instance.
      # TMT often automatically detects this from CI variables.
      # Testing if ci will get it on its own first.
      # api-url: https://gitlab.com
      # api-url: https://gitlab.com

      # The name for the status check shown in the GitLab UI.
      # Defaults to 'tmt'.
      # context: "testing-farm-results"
      # context: "testing-farm-results"

      # The access token for the GitLab API.
      # IMPORTANT: This is read from a secure environment variable.
      # api-token: ${GITLAB_API_TOKEN}
      # api-token: ${GITLAB_API_TOKEN}

/tests:

    /test_config:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_config -v"
        environment:
            TEST: dogtail_test_config
        order: 10
        duration: 10m
        tty: true

    /test_predicate:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_predicate -v"
        environment:
            TEST: dogtail_test_predicate
        order: 20
        duration: 10m
        tty: true

    /test_rawinput:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_rawinput -v"
        environment:
            TEST: dogtail_test_rawinput
        order: 30
        duration: 10m
        tty: true

    /test_tree_gtk3:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_tree_gtk3 -v"
        environment:
            TEST: dogtail_test_tree_gtk3
        order: 40
        duration: 10m
        tty: true

    /test_tree_gtk4:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_tree_gtk4 -v"
        environment:
            TEST: dogtail_test_tree_gtk4
        order: 50
        duration: 10m
        tty: true

    /test_tree_search_gtk3:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_tree_search_gtk3 -v"
        environment:
            TEST: dogtail_test_tree_search_gtk3
        order: 60
        duration: 10m
        tty: true

    /test_tree_search_gtk4:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_tree_search_gtk4 -v"
        environment:
            TEST: dogtail_test_tree_search_gtk4
        order: 70
        duration: 10m
        tty: true

    /test_tree_selection_gtk3:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_tree_selection_gtk3 -v"
        environment:
            TEST: dogtail_test_tree_selection_gtk3
        order: 80
        duration: 10m
        tty: true

    /test_tree_selection_gtk4:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_tree_selection_gtk4 -v"
        environment:
            TEST: dogtail_test_tree_selection_gtk4
        order: 90
        duration: 10m
        tty: true

    /test_tree_states_gtk3:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_tree_states_gtk3 -v"
        environment:
            TEST: dogtail_test_tree_states_gtk3
        order: 100
        duration: 10m
        tty: true

    /test_tree_states_gtk4:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_tree_states_gtk4 -v"
        environment:
            TEST: dogtail_test_tree_states_gtk4
        order: 110
        duration: 10m
        tty: true

    /test_tree_string_representation_gtk3:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_tree_string_representation_gtk3 -v"
        environment:
            TEST: dogtail_test_tree_string_representation_gtk3
        order: 120
        duration: 10m
        tty: true

    /test_tree_string_representation_gtk4:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_tree_string_representation_gtk4 -v"
        environment:
            TEST: dogtail_test_tree_string_representation_gtk4
        order: 130
        duration: 10m
        tty: true

    /test_tree_value_gtk3:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_tree_value_gtk3 -v"
        environment:
            TEST: dogtail_test_tree_value_gtk3
        order: 140
        duration: 10m
        tty: true

    /test_tree_value_gtk4:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_tree_value_gtk4 -v"
        environment:
            TEST: dogtail_test_tree_value_gtk4
        order: 150
        duration: 10m
        tty: true

    /test_utils_accessibility:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_utils_accessibility -v"
        environment:
            TEST: dogtail_test_utils_accessibility
        order: 160
        duration: 10m
        tty: true

    /test_utils_delay:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_utils_delay -v"
        environment:
            TEST: dogtail_test_utils_delay
        order: 170
        duration: 10m
        tty: true

    /test_utils_lock:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_utils_lock -v"
        environment:
            TEST: dogtail_test_utils_lock
        order: 180
        duration: 10m
        tty: true

    /test_utils_run_gtk3:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_utils_run_gtk3 -v"
        environment:
            TEST: dogtail_test_utils_run_gtk3
        order: 190
        duration: 10m
        tty: true

    /test_utils_run_gtk4:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_utils_run_gtk4 -v"
        environment:
            TEST: dogtail_test_utils_run_gtk4
        order: 200
        duration: 10m
        tty: true

    /test_version:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_version -v"
        environment:
            TEST: dogtail_test_version
        order: 210
        duration: 10m
        tty: true

    /test_rawinput_drag:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_rawinput_drag -v"
        environment:
            TEST: test_rawinput_drag
        order: 220
        duration: 10m
        tty: true

    /test_rawinput_keyboard_gtk3:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_rawinput_keyboard_gtk3 -v"
        environment:
            TEST: dogtail_test_rawinput_keyboard_gtk3
        order: 230
        duration: 10m
        tty: true

    /test_rawinput_keyboard_gtk4:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_rawinput_keyboard_gtk4 -v"
        environment:
            TEST: dogtail_test_rawinput_keyboard_gtk4
        order: 240
        duration: 10m
        tty: true

    /test_rawinput_mouse_buttons_gtk3:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_rawinput_mouse_buttons_gtk3 -v"
        environment:
            TEST: dogtail_test_rawinput_mouse_buttons_gtk3
        order: 250
        duration: 10m
        tty: true

    /test_rawinput_mouse_buttons_gtk4:
        test: sudo -u test /usr/local/bin/dogtail-headless "python3 -m unittest tests.test_rawinput_mouse_buttons_gtk4 -v"
        environment:
            TEST: dogtail_test_rawinput_mouse_buttons_gtk4
        order: 260
        duration: 10m
        tty: true