summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2024-05-17 10:20:29 +0200
committerJan Pazdziora <jpazdziora@redhat.com>2024-05-17 10:20:29 +0200
commit22ce6fea99bee91af313d4ffaec9e27cd7112640 (patch)
treefc745140f40389fc0a8cc9e2dcc5e0c853be8c5c /tests
parente86bb2eb771e12b8b28e0530764a8b88019b68e4 (diff)
downloadmod_authnz_pam-22ce6fea99bee91af313d4ffaec9e27cd7112640.tar.gz
mod_authnz_pam-22ce6fea99bee91af313d4ffaec9e27cd7112640.tar.xz
mod_authnz_pam-22ce6fea99bee91af313d4ffaec9e27cd7112640.zip
Add support for dnf5 which is now in Fedora rawhide.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/build.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/build.sh b/tests/build.sh
index fa3d28d..aa4f3da 100755
--- a/tests/build.sh
+++ b/tests/build.sh
@@ -3,13 +3,20 @@
set -e
set -x
-DNF=yum
-BUILDDEP_PROVIDER=yum-utils
-BUILDDEP=yum-builddep
-if type dnf 2> /dev/null ; then
+if type dnf5 2> /dev/null ; then
+ DNF=dnf
+ BUILDDEP_PROVIDER='dnf5-command(builddep)'
+ BUILDDEP='dnf builddep'
+elif type dnf 2> /dev/null ; then
DNF=dnf
BUILDDEP_PROVIDER='dnf-command(builddep)'
BUILDDEP='dnf builddep'
+elif type yum 2> /dev/null ; then
+ DNF=yum
+ BUILDDEP_PROVIDER=yum-utils
+ BUILDDEP=yum-builddep
+else
+ exit 1
fi
$DNF install -y rpm-build "$BUILDDEP_PROVIDER"