Add a test for multiline descriptions

Found in tracker-sparql project
pull/81/head
Baptiste Daroussin 2015-02-02 17:29:39 +01:00
parent f5428877f4
commit ff6c9c963a
2 changed files with 13 additions and 0 deletions

9
tests/lib1/multiline.pc Normal file
View File

@ -0,0 +1,9 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
Name: multiline
Description: A multiline \
description
Version: 1.2.3

View File

@ -211,6 +211,10 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --max-version 2.0 'foo '; echo
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags missing-require; echo \$?" \
'1'
# test the multiline description field
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --list-all | grep -q 'multiline description'; echo \$?" \
'0'
# test quoted #35
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags quotes" \
"-DQUOTED=\\\"bla\\\""