mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-02-04 14:10:30 +01:00
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.
27 lines
475 B
Bash
Executable file
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
|