diff --git a/tests/basic.sh b/tests/basic.sh index 4a929df..1bfe282 100755 --- a/tests/basic.sh +++ b/tests/basic.sh @@ -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 +} diff --git a/tests/lib1/foo.pc b/tests/lib1/foo.pc index f154eb7..daef9f9 100644 --- a/tests/lib1/foo.pc +++ b/tests/lib1/foo.pc @@ -9,3 +9,4 @@ Version: 1.2.3 Libs: -L${libdir} -lfoo Cflags: -fPIC -I${includedir}/foo Cflags.private: -DFOO_STATIC +License: ISC