Skip to content

Commit 8e6be74

Browse files
committed
TMT: run tests with GPUs
Fixes: #1054 Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent 5edacf1 commit 8e6be74

File tree

3 files changed

+37
-7
lines changed

3 files changed

+37
-7
lines changed

.packit.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ srpm_build_deps:
1919
jobs:
2020
# Copr builds for Fedora
2121
- job: copr_build
22-
trigger: pull_request
22+
trigger: ignore
2323
packages: [ramalama-fedora]
2424
enable_net: true
2525
targets: &fedora_copr_targets
@@ -29,7 +29,7 @@ jobs:
2929

3030
# Copr builds for CentOS Stream
3131
- job: copr_build
32-
trigger: pull_request
32+
trigger: ignore
3333
enable_net: true
3434
packages: [ramalama-centos]
3535
targets: &centos_copr_targets
@@ -47,12 +47,14 @@ jobs:
4747
# Tests for Fedora
4848
- job: tests
4949
trigger: pull_request
50+
skip_build: true
5051
packages: [ramalama-fedora]
51-
targets: *fedora_copr_targets
52+
targets:
53+
- fedora-rawhide
5254

5355
# Tests for CentOS Stream
5456
- job: tests
55-
trigger: pull_request
57+
trigger: ignore
5658
packages: [ramalama-centos]
5759
targets: *centos_copr_targets
5860

plans/main.fmf

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
summary: Check installed rpm metadata
21
discover:
3-
how: shell
2+
how: fmf
43
execute:
54
how: tmt
6-
script: rpm -qi python3-ramalama
5+
6+
provision:
7+
how: artemis
8+
hardware:
9+
gpu:
10+
device-name: GK210 (Tesla K80)
11+
vendor-name: NVIDIA
12+

test/tmt/main.fmf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#/rpm:
2+
# summary: Verify rpm installation
3+
# test: rpm -qi python3-ramalama
4+
5+
/gpu_info:
6+
summary: Display GPU info
7+
test: lshw -C display
8+
require:
9+
- lshw
10+
11+
/test_suite:
12+
summary: Run entire test suite
13+
test: make -C $TMT_TREE tests
14+
require:
15+
- bats
16+
- black
17+
- codespell
18+
- flake8
19+
- isort
20+
- make
21+
- pytest
22+
- shellcheck

0 commit comments

Comments
 (0)