forked from ariadne/pkgconf
tests: add tests for SPDX license assertions
parent
d5f9bdae57
commit
666b520273
|
@ -29,6 +29,8 @@ tests_init \
|
||||||
libs_circular_directpc \
|
libs_circular_directpc \
|
||||||
libs_static \
|
libs_static \
|
||||||
libs_static_ordering \
|
libs_static_ordering \
|
||||||
|
license_isc \
|
||||||
|
license_noassertion \
|
||||||
pkg_config_path \
|
pkg_config_path \
|
||||||
nolibs \
|
nolibs \
|
||||||
nocflags \
|
nocflags \
|
||||||
|
@ -307,3 +309,17 @@ single_depth_selectors_body()
|
||||||
-o inline:"foo\n" \
|
-o inline:"foo\n" \
|
||||||
pkgconf --with-path=${selfdir}/lib3 --print-requires bar
|
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
|
||||||
|
}
|
||||||
|
|
|
@ -9,3 +9,4 @@ Version: 1.2.3
|
||||||
Libs: -L${libdir} -lfoo
|
Libs: -L${libdir} -lfoo
|
||||||
Cflags: -fPIC -I${includedir}/foo
|
Cflags: -fPIC -I${includedir}/foo
|
||||||
Cflags.private: -DFOO_STATIC
|
Cflags.private: -DFOO_STATIC
|
||||||
|
License: ISC
|
||||||
|
|
Loading…
Reference in New Issue