Compare commits
5 commits
contiguous
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d071621a56 | ||
|
|
064b95ec27 | ||
|
|
36937a99b2 | ||
|
|
bc3f003633 | ||
|
|
89d13e8a13 |
7 changed files with 152 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
|||
#include <nss.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
extern int NSS_NoDB_Init(void*);
|
||||
|
||||
int main()
|
||||
{
|
||||
NSS_NoDB_Init(NULL);
|
||||
|
|
|
|||
|
|
@ -45,6 +45,10 @@ adjust:
|
|||
- enabled: false
|
||||
when: arch != x86_64
|
||||
|
||||
# No i686 in RHEL-10+
|
||||
- enabled: false
|
||||
when: distro >= rhel-10
|
||||
|
||||
# Testing farm does not support installing i686 packages in bodhi update testing,
|
||||
# so we disable this test there until that capacity is implemented.
|
||||
- enabled: false
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@ adjust:
|
|||
- enabled: false
|
||||
when: arch != x86_64
|
||||
|
||||
# No i686 in RHEL-10+
|
||||
- enabled: false
|
||||
when: distro >= rhel-10
|
||||
|
||||
# Testing farm does not support installing i686 packages in bodhi update testing,
|
||||
# so we disable this test there until that capacity is implemented.
|
||||
- enabled: false
|
||||
|
|
|
|||
6
Sanity/install-weak-deps/main.fmf
Normal file
6
Sanity/install-weak-deps/main.fmf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
summary: Make sure dnf installs weak dep packages (such as valgrind + valgrind-scripts)
|
||||
test: ./runtest.sh
|
||||
framework: beakerlib
|
||||
require:
|
||||
- rpm-build
|
||||
- createrepo
|
||||
50
Sanity/install-weak-deps/runtest.sh
Executable file
50
Sanity/install-weak-deps/runtest.sh
Executable file
|
|
@ -0,0 +1,50 @@
|
|||
#!/bin/bash
|
||||
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
||||
|
||||
DNFSWITCHES="--disablerepo=\* --enablerepo=mytestingrepo"
|
||||
|
||||
rlJournalStart
|
||||
rlPhaseStartSetup
|
||||
rlRun "dnf -y remove trivial-empty\* ||:"
|
||||
rlRun "rm /etc/yum.repos.d/mytestingrepo.repo ||:"
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartTest
|
||||
rlRun "rpmbuild -ba trivial-empty-v1.spec"
|
||||
rlRun "rpmbuild -ba trivial-empty-v2.spec"
|
||||
rlRun "a=$(rpm -E '%_arch')"
|
||||
rlRun "pushd $HOME/rpmbuild/RPMS/$a"
|
||||
rlRun "createrepo ."
|
||||
rlRun "popd"
|
||||
rlRun "rpm -Uvh --nosignature $HOME/rpmbuild/RPMS/$a/trivial-empty-1.0-1*"
|
||||
rlRun "rpm -qa | grep -F trivial-empty-sub" 1
|
||||
rlRun "rpm -qa | grep -F trivial-empty-1.0-1"
|
||||
rlRun "rpm -qa | grep -F trivial-empty-1.0-2" 1
|
||||
cat > /etc/yum.repos.d/mytestingrepo.repo <<EOF
|
||||
[mytestingrepo]
|
||||
name=mytestingrepo
|
||||
baseurl=file:///$HOME/rpmbuild/RPMS/$a
|
||||
gpgcheck=0
|
||||
enabled=1
|
||||
EOF
|
||||
rlRun "cat /etc/yum.repos.d/mytestingrepo.repo"
|
||||
rlRun "dnf $DNFSWITCHES clean all"
|
||||
rlRun "dnf $DNFSWITCHES -y update trivial-empty"
|
||||
rlRun "rpm -qa | grep -F trivial-empty-1.0-1" 1
|
||||
rlRun "rpm -qa | grep -F trivial-empty-1.0-2"
|
||||
# The gist of this test is to make sure the following
|
||||
# trivial-empty-sub-1.0-2 is now installed as a weak dep
|
||||
rlRun "rpm -qa | grep -F trivial-empty-sub-1.0-2"
|
||||
# Since it's a weak dep, it should be possible to remove
|
||||
# trivial-empty-sub now, and the trivial-empty should still
|
||||
# be installed
|
||||
rlRun "dnf $DNFSWITCHES remove -y trivial-empty-sub"
|
||||
rlRun "rpm -qa | grep -F trivial-empty-1.0-2"
|
||||
rlRun "rpm -qa | grep -F trivial-empty-sub-1.0-2" 1
|
||||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartCleanup
|
||||
rlRun "dnf -y remove trivial-empty\*"
|
||||
rlRun "rm /etc/yum.repos.d/mytestingrepo.repo"
|
||||
rlPhaseEnd
|
||||
rlJournalEnd
|
||||
34
Sanity/install-weak-deps/trivial-empty-v1.spec
Normal file
34
Sanity/install-weak-deps/trivial-empty-v1.spec
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
Name: trivial-empty
|
||||
Version: 1.0
|
||||
Release: 1%{?dist}
|
||||
Epoch: 1
|
||||
Summary: A trivial RPM package with an empty payload
|
||||
|
||||
License: MIT
|
||||
BuildArch: %_arch
|
||||
|
||||
# Description of the package
|
||||
%description
|
||||
This is a trivial RPM package with no payload. It serves as an example
|
||||
of how to create an RPM specfile with minimal content.
|
||||
|
||||
# Prep stage: nothing to prepare
|
||||
%prep
|
||||
# Empty section
|
||||
|
||||
# Build stage: nothing to build
|
||||
%build
|
||||
# Empty section
|
||||
|
||||
# Install stage: nothing to install
|
||||
%install
|
||||
# Empty section
|
||||
|
||||
# Files: no files to include
|
||||
%files
|
||||
# Empty section
|
||||
|
||||
# Changelog for the RPM package
|
||||
%changelog
|
||||
* Thu Jan 16 2025 Example Maintainer <example@example.com> - 1.0-1
|
||||
- Initial creation of a trivial RPM with no payload
|
||||
52
Sanity/install-weak-deps/trivial-empty-v2.spec
Normal file
52
Sanity/install-weak-deps/trivial-empty-v2.spec
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
Name: trivial-empty
|
||||
Version: 1.0
|
||||
Release: 2%{?dist}
|
||||
Epoch: 1
|
||||
Summary: A trivial RPM package with an empty payload
|
||||
|
||||
License: MIT
|
||||
BuildArch: %_arch
|
||||
|
||||
# Set weak dependency on trivial-empty-sub which is a new subpackage
|
||||
# introduced within this update
|
||||
Recommends: trivial-empty-sub = %{epoch}:%{version}-%{release}
|
||||
# Requires: trivial-empty-sub = %{epoch}:%{version}-%{release}
|
||||
|
||||
# Description of the package
|
||||
%description
|
||||
This is a trivial RPM package with no payload. It serves as an example
|
||||
of how to create an RPM specfile with minimal content.
|
||||
|
||||
%package sub
|
||||
Summary: A trivial RPM subpackage with an empty payload
|
||||
# Description for the subpackage
|
||||
%description sub
|
||||
This is a subpackage of trivial-empty, with an empty payload.
|
||||
|
||||
# Prep stage: nothing to prepare
|
||||
%prep
|
||||
# Empty section
|
||||
|
||||
# Build stage: nothing to build
|
||||
%build
|
||||
# Empty section
|
||||
|
||||
# Install stage: nothing to install
|
||||
%install
|
||||
# Empty section
|
||||
|
||||
# Files: no files to include
|
||||
%files
|
||||
# Empty section
|
||||
|
||||
# Subpackage files: no files to include
|
||||
%files sub
|
||||
# Empty section
|
||||
|
||||
# Changelog for the RPM package
|
||||
%changelog
|
||||
* Thu Jan 16 2025 Example Maintainer <example@example.com> - 1.0-2
|
||||
- Initial creation of the trivial RPM with no payload
|
||||
|
||||
* Thu Jan 16 2025 Example Maintainer <example@example.com> - 1.0-1
|
||||
- Initial creation of a trivial RPM with no payload
|
||||
Loading…
Add table
Add a link
Reference in a new issue