debian-forge/test/data/testrepos
Simon de Vlieger 1e70131346 data: include appstream repository metadata
The CentOS Stream 9 repository metadata contains modules; these are
necessary for testing modularity depsolving.

Note that the filelists metadata is kept empty to keep repository size
down.

Co-authored-by: Michael Vogt <michael.vogt@gmail.com>
Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-01-22 18:03:21 +01:00
..
appstream/repodata data: include appstream repository metadata 2025-01-22 18:03:21 +01:00
baseos/repodata data: include appstream repository metadata 2025-01-22 18:03:21 +01:00
custom/repodata test: regenerate test repository metadata 2024-04-16 07:38:18 +02:00
README.md tools: rename "nothing" to "pkg-with-no-deps" to make it a bit clearer 2024-04-11 12:45:25 +02:00

Test repositories metadata

This directory is used for osbuild-depsolve-dnf unit tests. Each subdirectory contains repository metadata that is served by a server during testing for osbuild-depsolve-dnf to query.

  • baseos: CS9 BaseOS repository metadata.
  • custom: a custom repository containing a single (empty) package, created with:
rpmdir=$(mktemp -d)
cat <<EOF > "${rpmdir}/pkg-with-no-deps.spec"
#----------- spec file starts ---------------
Name:                   pkg-with-no-deps
Version:                1.0.0
Release:                0
BuildArch:              noarch
Vendor:                 noone
Summary:                Provides %{name}
License:                BSD
Provides:               pkg-with-no-deps

%description
%{summary}

%files
EOF

rpmbuild --quiet --define "_topdir ${rpmdir}" -bb "${rpmdir}/pkg-with-no-deps.spec"
createrepo "${rpmdir}/RPMS/noarch/"
mkdir -p ./test/data/testrepos/custom
cp -a "${rpmdir}/RPMS/noarch/repodata" ./test/data/testrepos/custom