testsuite: add a test for comma as package separator (some openbsd pkg-config versions did not support this)

pull/92/head
William Pitcock 2016-05-28 03:35:11 -05:00
parent f44f83998c
commit 97e1ffe7b3
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags --libs 'foo > 1.2'" \
'-lfoo' '-I/test/include/foo' '-fPIC' '-lfoo' '-I/test/include/foo' '-fPIC'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags --libs 'foo > 1.2 bar >= 1.3'" \ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags --libs 'foo > 1.2 bar >= 1.3'" \
'-lfoo' '-I/test/include/foo' '-fPIC' '-lfoo' '-I/test/include/foo' '-fPIC'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags --libs 'foo > 1.2,bar >= 1.3'" \
'-lbar' '-I/test/include/foo' '-fPIC'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags --libs 'foo' '>' '1.2'" \ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags --libs 'foo' '>' '1.2'" \
'-lfoo' '-I/test/include/foo' '-fPIC' '-lfoo' '-I/test/include/foo' '-fPIC'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists nonexistant; echo \$?" \ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists nonexistant; echo \$?" \