mirror of
https://github.com/pkgconf/pkgconf.git
synced 2026-01-27 01:44:34 +00:00
Add some basic tests for spdxtool to make sure that SPDX Lite profile 3.0 does not break in future
33 lines
656 B
Bash
Executable File
33 lines
656 B
Bash
Executable File
#!/usr/bin/env atf-sh
|
|
|
|
. $(atf_get_srcdir)/test_env.sh
|
|
|
|
tests_init \
|
|
basic \
|
|
with_dependency \
|
|
meta_package
|
|
|
|
basic_body()
|
|
{
|
|
export PKG_CONFIG_PATH="${selfdir}/lib-sbom"
|
|
atf_check \
|
|
-o file:"${selfdir}/lib-sbom-files/basic.json" \
|
|
spdxtool --creation-time="test" test3
|
|
}
|
|
|
|
with_dependency_body()
|
|
{
|
|
export PKG_CONFIG_PATH="${selfdir}/lib-sbom"
|
|
atf_check \
|
|
-o file:"${selfdir}/lib-sbom-files/with_dependency.json" \
|
|
spdxtool --creation-time="test" test2
|
|
}
|
|
|
|
meta_package_body()
|
|
{
|
|
export PKG_CONFIG_PATH="${selfdir}/lib-sbom"
|
|
atf_check \
|
|
-o file:"${selfdir}/lib-sbom-files/meta_package.json" \
|
|
spdxtool --creation-time="test" meta_package
|
|
}
|