public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/Lmod] f43: Convert to tmt tests (rhbz#2382850)
@ 2026-09-29 2:21 Orion Poplawski
0 siblings, 0 replies; only message in thread
From: Orion Poplawski @ 2026-09-29 2:21 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/Lmod
Branch : f43
Commit : 5a1bdfc1a1f92545b9b4ef283425632a00624200
Author : Orion Poplawski <orion@nwra.com>
Date : 2025-08-29T08:47:56+02:00
Stats : +24/-15 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/Lmod/c/5a1bdfc1a1f92545b9b4ef283425632a00624200?branch=f43
Log:
Convert to tmt tests (rhbz#2382850)
---
diff --git a/.fmf/version b/.fmf/version
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/.fmf/version
@@ -0,0 +1 @@
+1
diff --git a/plans.fmf b/plans.fmf
new file mode 100644
index 0000000..1239d6e
--- /dev/null
+++ b/plans.fmf
@@ -0,0 +1,12 @@
+summary: Run all tests
+discover:
+ how: fmf
+prepare:
+ - name: Disable installing everything from srpm
+ how: install
+ exclude: ".*"
+ - name: Install the main package
+ how: install
+ package: Lmod
+execute:
+ how: tmt
diff --git a/tests/avail.fmf b/tests/avail.fmf
new file mode 100644
index 0000000..29c9fe2
--- /dev/null
+++ b/tests/avail.fmf
@@ -0,0 +1,3 @@
+summary: Basic smoke test
+test+: |
+ ml avail
diff --git a/tests/load.fmf b/tests/load.fmf
new file mode 100644
index 0000000..a6e890b
--- /dev/null
+++ b/tests/load.fmf
@@ -0,0 +1,3 @@
+summary: Test module load
+test+: |
+ ml load lmod
diff --git a/tests/main.fmf b/tests/main.fmf
new file mode 100644
index 0000000..f15c0db
--- /dev/null
+++ b/tests/main.fmf
@@ -0,0 +1,5 @@
+# Need to source /etc/profile.d before all tests
+# this is not available in prepare steps yet, so we add them manually here
+# Make sure that all tests are using `test+:` in order to append to the steup added here
+test: |
+ source /etc/profile.d/modules.sh
diff --git a/tests/tests.yml b/tests/tests.yml
deleted file mode 100644
index 9e29254..0000000
--- a/tests/tests.yml
+++ /dev/null
@@ -1,15 +0,0 @@
----
-- hosts: localhost
- roles:
- - role: standard-test-basic
- tags:
- - atomic
- - classic
- - container
- tests:
- - avail-test:
- dir: ./
- run: ml avail
- - load-test:
- dir: ./
- run: ml load lmod
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-29 2:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29 2:21 [rpms/Lmod] f43: Convert to tmt tests (rhbz#2382850) Orion Poplawski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox