#!/bin/bash set -xeuo pipefail dn=$(cd $(dirname $0) && pwd) . ${dn}/libcomposetest.sh prepare_compose_test "basic" # Test metadata json with objects, arrays, numbers cat > metadata.json < autovar.txt # Picked this one at random as an example of something that won't likely be # converted to tmpfiles.d upstream. But if it is, we can change this test. assert_file_has_content_literal autovar.txt 'd /var/cache 0755 root root - -' # And this one has a non-root uid assert_file_has_content_literal autovar.txt 'd /var/log/chrony 0755 chrony chrony - -' echo "ok autovar" ostree --repo=${repobuild} cat ${treeref} /usr/lib/systemd/system-preset/40-rpm-ostree-auto.preset > preset.txt assert_file_has_content preset.txt '^enable ostree-remount.service$' # https://github.com/projectatomic/rpm-ostree/pull/1425 ostree --repo=${repobuild} ls ${treeref} /usr/etc > ls.txt assert_not_file_has_content ls.txt 'machine-id' echo "ok machine-id" if ! rpm-ostree --version | grep -q rust; then echo "ok yaml (SKIP)" else prepare_compose_test "from-yaml" python <