tests: add tests for --variable

pull/15/head
William Pitcock 2012-05-05 21:55:27 +00:00
parent 542e4e6f89
commit db5d98297c
1 changed files with 4 additions and 0 deletions

View File

@ -68,6 +68,10 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs dos-lineendings" \
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs argv-parse" \ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs argv-parse" \
'-llib-2 -lpthread' '-llib-2 -lpthread'
# 5) tests for other regressions
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --variable=includedir foo" \
'/usr/include'
if [ ${failed} -gt 0 ]; then if [ ${failed} -gt 0 ]; then
echo "${failed} of ${done} tests failed. See output for details." >&2 echo "${failed} of ${done} tests failed. See output for details." >&2
exit 1 exit 1