tests: add test for freedesktop.org bug 54271

feature/tap-sh
William Pitcock 2012-09-02 17:34:44 -05:00
parent 25902dbc11
commit 749a604c70
2 changed files with 6 additions and 0 deletions

4
tests/lib1/incomplete.pc Normal file
View File

@ -0,0 +1,4 @@
Name: incomplete
Description: incomplete package without CFLAGS/LIBS entries (freedesktop #54271)
Version: 1.2.3

View File

@ -114,6 +114,8 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs-only-L --libs-only-l cflag
'-lfoo' '-lfoo'
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --cflags-only-I --cflags-only-other cflags-libs-only" \ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --cflags-only-I --cflags-only-other cflags-libs-only" \
'-I/usr/local/include' '-I/usr/local/include'
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs incomplete; echo $?" \
'0'
# 6) tests for builtins # 6) tests for builtins
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --modversion pkg-config" \ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --modversion pkg-config" \