tests: add dos-lineendings test
parent
5f35ec35a8
commit
f1d13ef08b
|
@ -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
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue