forked from ariadne/pkgconf
tests: add a regression test for #108
parent
4ea31dc692
commit
15ae233d23
|
@ -23,7 +23,8 @@ tests_init \
|
|||
idirafter_munge_sysroot \
|
||||
idirafter_ordering \
|
||||
pcpath \
|
||||
sysroot_munge
|
||||
sysroot_munge \
|
||||
virtual_variable
|
||||
|
||||
case_sensitivity_body()
|
||||
{
|
||||
|
@ -203,3 +204,16 @@ sysroot_munge_body()
|
|||
-o inline:"-L/sysroot2/sysroot/lib -lfoo \n" \
|
||||
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
|
||||
}
|
||||
|
|
|
@ -6,6 +6,11 @@ if [ "$(uname -s)" = "Msys" ]; then
|
|||
PATH_SEP=";"
|
||||
fi
|
||||
|
||||
prefix="@prefix@"
|
||||
exec_prefix="@exec_prefix@"
|
||||
datarootdir="@datarootdir@"
|
||||
pcpath="@PKGCONFIGDIR@"
|
||||
|
||||
tests_init()
|
||||
{
|
||||
TESTS="$@"
|
||||
|
|
Loading…
Reference in New Issue