tests: add explicit tests for issue #24

feature/tap-sh
William Pitcock 2012-07-20 13:35:33 -05:00
parent 3d0f67a7b3
commit 9e30e2a7bb
1 changed files with 8 additions and 0 deletions

View File

@ -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