This moves the `sources_tests` into ./test/data/sources/ and makes the entire test use `locate_test_data()` to get relative paths for their accesses. This further improves our test cases to support running from installments rather than local checkouts. We need access to ./test/data guarded, so we can install packages and still have the tests access the correct paths. This also adjusts the HTTP-Server we use in the test to serve data relative to a path it is handed. I now chose `./test/data`, which will easily allow us to re-use the same HTTP-Server in the future for other tests that require it.
1.6 KiB
OSBuild Test Data
This directory contains data used by the osbuild test-suite. Since many formats do not allow comments, this file shortly describes their purpose.
Directories
-
./os-release/: This directory is consumed by the unit-tests of theos-releaseparser. The directory contains example os-release files (seeos-release(5)). Their directory name is the expected output of the parser. -
./manifests/: This directory contains osbuild manifests used throughout the test-suite.Manifests prefixed with
f30,f31, etc. are manifests that produce fedora images. If they havebaseas part of their name, they include a base set of packages which we very loosely define as@coreplus the packages our test-suite needs. If they havebuildas part of their name, they have a very restricted package set which includes just what is needed in a build-root for osbuild.The
rhelprefix is used for Red Hat Enterprise Linux images. Since they are not available publicly, the test-suite usually skips them.Manifests prefixed with
mpp-*are fed through the ManifestPreProcessors and then stored in the same directory with thempp-*prefix dropped. The generated files are committed to the repository. Nevertheless, if you need to regenerate them, usemake test-data. -
./sources/: This directory contains test-data for runtime tests of the source-engines. It contains a directory that is served via HTTP in the tests, and a directory of test-cases what to expect when using the attachedsources.json.