tests: add dos-lineendings test

feature/tap-sh
William Pitcock 2012-05-04 03:08:55 +00:00
parent 5f35ec35a8
commit f1d13ef08b
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,10 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
Name: dos-lineendings
Description: A testing pkg-config file
Version: 1.2.3
Libs: -L${libdir}/dos-lineendings -ldos-lineendings
Cflags: -fPIC -I${includedir}/dos-lineendings

View File

@ -62,6 +62,10 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs --cflags baz" \
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --static --libs baz" \ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --static --libs baz" \
'-lfoo' '-lbaz' '-lzee' '-lfoo' '-lbaz' '-lzee'
# 4) tests for DOS line-endings
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs dos-lineendings" \
'-L/usr/lib/dos-lineendings -ldos-lineendings'
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