pkg-config/check/check-sysroot
Dan Nicholson d6337ec986 Always use --static test results for indirect depencency results
Often the expected results for the indirect dependency tests fell behind
because it's not a typical test scenario. However, since the results are
always the same as --static, they can just use the same results and the
test can be run conditionally without --static based on configuration.
2012-11-29 19:18:41 -08:00

27 lines
475 B
Bash
Executable file

#! /bin/sh
set -e
. ${srcdir}/common
export PKG_CONFIG_SYSROOT_DIR=/sysroot
RESULT=""
run_test --cflags simple
RESULT="-lsimple"
if [ "$list_indirect_deps" = no ]; then
run_test --libs simple
fi
RESULT="-lsimple -lm"
if [ "$list_indirect_deps" = yes ]; then
run_test --libs simple
fi
run_test --libs --static simple
RESULT="-I/sysroot/public-dep/include"
run_test --cflags public-dep
RESULT="-L/sysroot/public-dep/lib -lpublic-dep"
run_test --libs public-dep