public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/llvm] main: Add a spirv-llvm-translator test
@ 2026-11-20 12:09 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-20 12:09 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : tests/llvm
Branch : main
Commit : d865a22fffc693bb8842556e24d00b0d151244f8
Author : Timm Bäder <tbaeder@redhat.com>
Date   : 2026-11-17T13:27:24+01:00
Stats  : +50/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/tests/llvm/c/d865a22fffc693bb8842556e24d00b0d151244f8?branch=main

Log:
Add a spirv-llvm-translator test

---
diff --git a/tests/spirv-llvm-translator/main.fmf b/tests/spirv-llvm-translator/main.fmf
new file mode 100644
index 0000000..74b6cf2
--- /dev/null
+++ b/tests/spirv-llvm-translator/main.fmf
@@ -0,0 +1,22 @@
+summary: spirv-llvm-translator
+framework: beakerlib
+description: Make sure building spirv-llvm-translator works.
+require+:
+  - rpm-build
+  - spirv-tools
+  - spirv-tools-devel
+  - cmake
+  - gcc
+  - gcc-c++
+  - llvm-devel
+  - llvm-static
+  - ninja-build
+  - spirv-headers-devel
+  - zlib-ng-compat-devel
+  - libffi-devel
+  - libxml2-devel
+  - spirv-llvm-translator
+tier: 1
+tag+:
+  - fedora-only
+duration: 15m

diff --git a/tests/spirv-llvm-translator/test.sh b/tests/spirv-llvm-translator/test.sh
new file mode 100755
index 0000000..a3fa9d6
--- /dev/null
+++ b/tests/spirv-llvm-translator/test.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
+. /usr/share/beakerlib/beakerlib.sh || exit 1
+
+
+rlJournalStart
+    rlPhaseStartSetup
+        rlRun "set -o pipefail"
+        declare TmpDir
+        rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory"
+        rlRun "pushd $TmpDir"
+    rlPhaseEnd
+
+    # NOTE: Do not run dnf builddep here. TMT should take care of any packages needed to
+    # run the test. If the rpmbuild fails due to missing packages, then fmf metadata
+    # needs to be fixed.
+    rlPhaseStartTest
+       rlFetchSrcForInstalled "spirv-llvm-translator"
+       rlRun "rpmbuild --define \"_sourcedir $PWD\" --rebuild *.src.rpm"
+    rlPhaseEnd
+
+    rlPhaseStartCleanup
+        rlRun "popd"
+        rlRun "rm -rf $TmpDir" 0 "Removing tmp directory"
+        rlRun "rm -rf $(rpm -E '%_topdir')" 0 "Removing rpmbuild directory"
+    rlPhaseEnd
+
+rlJournalEnd

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-20 12:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 12:09 [tests/llvm] main: Add a spirv-llvm-translator test 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox