Tune description and disable for alternative builds

This commit is contained in:
Petr Menšík 2024-07-31 22:07:30 +02:00 committed by psklenar
commit 341c6a0695
2 changed files with 9 additions and 3 deletions

View file

@ -1,4 +1,6 @@
summary: Tries whether bind-dyndb-ldap can be build with current bind-devel
summary: bind-dyndb-ldap build with current bind-devel
description: |
Checks whether bind-devel is okay to build bind-dyndb-ldap for freeipa.
test: ./test.sh
framework: beakerlib
recommend+:
@ -7,3 +9,5 @@ recommend+:
adjust+:
- enabled: false
when: distro == rhel, centos
- enabled: false
when: component is defined and component != bind

View file

@ -2,6 +2,8 @@
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
. /usr/share/beakerlib/beakerlib.sh || exit 1
: ${PACKAGE:=bind}
rlJournalStart
rlPhaseStartSetup
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
@ -26,9 +28,9 @@ rlJournalStart
*)
rlLogFatal "Unsupported distribution $ID" ;;
esac
rlRun "rpm -q bind-devel || dnf install -y $EXTRA_REPOS bind-devel"
rlRun "rpm -q $PACKAGE-devel || dnf install -y $EXTRA_REPOS $PACKAGE-devel"
rlRun "rpm -q $PKG || dnf install -y $EXTRA_REPOS $PKG"
rlAssertRpm bind-devel
rlAssertRpm $PACKAGE-devel
rlRun "$PKG clone -a bind-dyndb-ldap"
rlRun "pushd bind-dyndb-ldap"
rlRun "ls -l *.spec"