diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2014-02-10 09:35:40 -0800 |
---|---|---|
committer | Dan Nicholson <nicholson@endlessm.com> | 2014-12-09 06:23:33 -0800 |
commit | 2808a5497c0dbcc7b6dbc81652718192ba7b7552 (patch) | |
tree | 37ca675c1082922e1ecc6089060370611f8b617c | |
parent | 9294307b213c157db991d838654e7fef6842b1de (diff) |
check: Test that the pcfiledir variable is output correctly
-rwxr-xr-x | check/check-relocatable | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/check/check-relocatable b/check/check-relocatable index 2aaab42..b7ab93a 100755 --- a/check/check-relocatable +++ b/check/check-relocatable @@ -3,18 +3,27 @@ set -e . ${srcdir}/common -# Test if pcfiledir metadata variable is substituted correctly -RESULT="-I${srcdir}/include -L${srcdir}/lib -lfoo" -run_test --cflags --libs pcfiledir - -# Convert abs_top_srcdir to Windows format if necessary. +# Convert absolute directories to Windows format if necessary. if [ "$native_win32" = yes ]; then # Assume we have cmd to do the conversion, except we have to escape # the command switch on MSYS. [ "$OSTYPE" = msys ] && opt="\\/C" || opt="/C" abs_top_srcdir=$($WINE cmd $opt echo "$abs_top_srcdir") + abs_srcdir=$($WINE cmd $opt echo "$abs_srcdir") fi +# See if the pcfiledir variable is defined. First, with the path +# built from the relative PKG_CONFIG_LIBDIR. Second, with the path +# built from the full path to the pc file. +RESULT=$srcdir +run_test --variable=pcfiledir pcfiledir +RESULT=$abs_srcdir +run_test --variable=pcfiledir "$abs_srcdir/pcfiledir.pc" + +# Test if pcfiledir metadata variable is substituted correctly +RESULT="-I${srcdir}/include -L${srcdir}/lib -lfoo" +run_test --cflags --libs pcfiledir + # Test prefix redefinition for .pc files in pkgconfig directory. Try .pc # files with both unexpanded and expanded variables. Use the absolute # directory for the search path so that pkg-config can strip enough |