forked from ariadne/pkgconf
tests: add explicit tests for issue #24
parent
3d0f67a7b3
commit
9e30e2a7bb
|
@ -126,6 +126,14 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --max-version 1.0 'foo '; echo \$
|
|||
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --max-version 2.0 'foo '; echo \$?" \
|
||||
'0'
|
||||
|
||||
# 10) tests for internal getopt implementation with options at the end
|
||||
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} foo --libs" \
|
||||
'-lfoo'
|
||||
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} foo --cflags --libs" \
|
||||
'-lfoo' '-I/usr/include/foo' '-fPIC'
|
||||
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --cflags foo --libs" \
|
||||
'-lfoo' '-I/usr/include/foo' '-fPIC'
|
||||
|
||||
if [ ${failed} -gt 0 ]; then
|
||||
echo "${failed} of ${done} tests failed. See output for details." >&2
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue