tests: add a regression test for #108

feature/tap-sh
William Pitcock 2017-01-22 23:21:51 -06:00
parent 9ece7cd487
commit 987cf94a7f
2 changed files with 20 additions and 1 deletions

View File

@ -23,7 +23,8 @@ tests_init \
idirafter_munge_sysroot \ idirafter_munge_sysroot \
idirafter_ordering \ idirafter_ordering \
pcpath \ pcpath \
sysroot_munge sysroot_munge \
virtual_variable
case_sensitivity_body() case_sensitivity_body()
{ {
@ -203,3 +204,16 @@ sysroot_munge_body()
-o inline:"-L/sysroot2/sysroot/lib -lfoo \n" \ -o inline:"-L/sysroot2/sysroot/lib -lfoo \n" \
pkgconf --libs sysroot-dir pkgconf --libs sysroot-dir
} }
virtual_variable_body()
{
atf_check -s exit:0 \
pkgconf --exists pkg-config
atf_check -s exit:0 \
pkgconf --exists pkgconf
atf_check -o inline:"${pcpath}\n" \
pkgconf --variable=pc_path pkg-config
atf_check -o inline:"${pcpath}\n" \
pkgconf --variable=pc_path pkgconf
}

View File

@ -6,6 +6,11 @@ if [ "$(uname -s)" = "Msys" ]; then
PATH_SEP=";" PATH_SEP=";"
fi fi
prefix="@prefix@"
exec_prefix="@exec_prefix@"
datarootdir="@datarootdir@"
pcpath="@PKGCONFIGDIR@"
tests_init() tests_init()
{ {
TESTS="$@" TESTS="$@"