tests: add tests for SPDX license assertions

master
Ariadne Conill 2022-08-07 04:40:31 +00:00
parent d5f9bdae57
commit 666b520273
2 changed files with 17 additions and 0 deletions

View File

@ -29,6 +29,8 @@ tests_init \
libs_circular_directpc \
libs_static \
libs_static_ordering \
license_isc \
license_noassertion \
pkg_config_path \
nolibs \
nocflags \
@ -307,3 +309,17 @@ single_depth_selectors_body()
-o inline:"foo\n" \
pkgconf --with-path=${selfdir}/lib3 --print-requires bar
}
license_isc_body()
{
atf_check \
-o inline:"foo: ISC\n" \
pkgconf --with-path=${selfdir}/lib1 --license foo
}
license_noassertion_body()
{
atf_check \
-o inline:"bar: NOASSERTION\nfoo: ISC\n" \
pkgconf --with-path=${selfdir}/lib1 --license bar
}

View File

@ -9,3 +9,4 @@ Version: 1.2.3
Libs: -L${libdir} -lfoo
Cflags: -fPIC -I${includedir}/foo
Cflags.private: -DFOO_STATIC
License: ISC