forked from ariadne/pkgconf
Tests for PKG_CONFIG_PATH ordering.
parent
97b8c09365
commit
482b65f1ce
|
@ -0,0 +1,10 @@
|
||||||
|
prefix=/usr
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: foo
|
||||||
|
Description: A testing pkg-config file
|
||||||
|
Version: 1.2.3
|
||||||
|
Libs: -L${libdir} -lbar
|
||||||
|
Cflags: -fPIC -I${includedir}/bar
|
|
@ -48,6 +48,12 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --exists 'foo > 1.2'; echo \$?" \
|
||||||
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --exists 'foo > 1.2.3'; echo \$?" \
|
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --exists 'foo > 1.2.3'; echo \$?" \
|
||||||
'1'
|
'1'
|
||||||
|
|
||||||
|
# 2) tests for PKG_CONFIG_PATH order
|
||||||
|
run_test "PKG_CONFIG_PATH=${selfdir}/lib1:${selfdir}/lib2 ${1} --libs foo" \
|
||||||
|
'-lfoo'
|
||||||
|
run_test "PKG_CONFIG_PATH=${selfdir}/lib2:${selfdir}/lib1 ${1} --libs foo" \
|
||||||
|
'-lbar'
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue