testsuite: add additional tests for PKG_CONFIG_SYSROOT_DIR

feature/tap-sh
William Pitcock 2013-02-24 08:57:53 -06:00
parent 5dab626274
commit bea204fa63
1 changed files with 4 additions and 0 deletions

View File

@ -152,6 +152,10 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --variable=pcfiledir foo" \
# 7) tests for env modifiers
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='${SYSROOT_DIR}' ${1} --cflags baz" \
"-I${SYSROOT_DIR}/usr/include/foo"
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='${SYSROOT_DIR}' ${1} --variable=prefix baz" \
"${SYSROOT_DIR}/usr"
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='${SYSROOT_DIR}' ${1} --variable=includedir baz" \
"${SYSROOT_DIR}/usr/include"
# 8) tests for 'Conflicts'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs conflicts; echo \$?" \