9f777c26ee
Following up on `--ex-jigdo-output-rpm`, add support for writing the entire set to an output directory. This is intended for use cases like FAHC, where we're generating data outside of the upstream Fedora infrastructure. Further, we want to support having our own history stored reliably, even if upstream prunes RPMs. Now, this can be interesting even for upstreams like Fedora, as it naturally captures just the subset of RPMs; doing full history support for that would likely be a lot more palatable than for Everything. Closes: #1165 Approved by: jlebon
32 lines
1.2 KiB
Bash
Executable File
32 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
# Test rpm-ostree compose tree --ex-jigdo-output-rpm
|
|
|
|
set -xeuo pipefail
|
|
|
|
dn=$(cd $(dirname $0) && pwd)
|
|
. ${dn}/libcomposetest.sh
|
|
. ${dn}/../common/libtest.sh
|
|
|
|
prepare_compose_test "compose2jigdo"
|
|
pysetjsonmember "ex-jigdo-spec" '"fedora-atomic-host-oirpm.spec"'
|
|
mkdir cache
|
|
mkdir jigdo-output
|
|
runcompose --ex-jigdo-output-rpm $(pwd)/jigdo-output --cachedir $(pwd)/cache --add-metadata-string version=42.0
|
|
rev=$(ostree --repo=repo-build rev-parse ${treeref})
|
|
find jigdo-output -name '*.rpm' | tee rpms.txt
|
|
assert_file_has_content rpms.txt 'fedora-atomic-host-42.0.*x86_64'
|
|
grep 'fedora-atomic-host.*x86_64\.rpm' rpms.txt | while read p; do
|
|
rpm -qp --provides ${p} >>provides.txt
|
|
done
|
|
assert_file_has_content_literal provides.txt "rpmostree-jigdo-commit(${rev})"
|
|
echo "ok compose2jigdoRPM"
|
|
|
|
runcompose --force-nocache --ex-jigdo-output-set $(pwd)/jigdo-output --cachedir $(pwd)/cache --add-metadata-string version=42.1
|
|
rev=$(ostree --repo=repo-build rev-parse ${treeref})
|
|
find jigdo-output -name '*.rpm' | tee rpms.txt
|
|
assert_file_has_content rpms.txt 'systemd.*x86_64'
|
|
assert_file_has_content rpms.txt 'ostree.*x86_64'
|
|
assert_file_has_content rpms.txt 'fedora-atomic-host-42.1.*x86_64'
|
|
echo "ok compose2jigdoSet"
|
|
|