#!/bin/bash # Test rpm-ostree compose tree --ex-rojig-output-rpm set -xeuo pipefail dn=$(cd $(dirname $0) && pwd) . ${dn}/libcomposetest.sh . ${dn}/../common/libtest.sh prepare_compose_test "compose2jigdo" pysetjsonmember "rojig" '{ "name": "fedora-atomic-host", "license": "MIT", "summary": "Fedora Atomic Host"}' python <>provides.txt done assert_file_has_content_literal provides.txt "rpmostree-jigdo-commit(${rev})" assert_file_has_content_literal provides.txt "rpmostree-rojig-inputhash(${inputhash})" echo "ok compose2jigdoRPM" runcompose --force-nocache --ex-rojig-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"