public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Orion Poplawski <orion@nwra.com>
To: git-commits@fedoraproject.org
Subject: [rpms/Lmod] f43: Convert to tmt tests (rhbz#2382850)
Date: Tue, 29 Sep 2026 02:21:33 GMT	[thread overview]
Message-ID: <179064849314.1.13347390262454520115.rpms-Lmod-5a1bdfc1a1f9@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-09-29  2:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179064849314.1.13347390262454520115.rpms-Lmod-5a1bdfc1a1f9@fedoraproject.org \
    --to=orion@nwra.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox