tests: add tests for --define-variable (issue #7)

feature/tap-sh
William Pitcock 2012-05-06 23:30:37 -05:00
parent 07a414677b
commit 97afd424b1
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,10 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --variable=includedir foo" \
# 6) tests for builtins
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --modversion pkg-config" \
'0.26'
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --variable=prefix foo" \
'/usr'
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --define-variable=prefix=/test --variable=prefix foo" \
'/test'
if [ ${failed} -gt 0 ]; then
echo "${failed} of ${done} tests failed. See output for details." >&2