forked from ariadne/pkgconf
tests: add testcases for #163
parent
18abb4ccc1
commit
6073a49229
|
@ -72,6 +72,9 @@ EXTRA_DIST = pkg.m4 \
|
|||
tests/lib1/fragment-collision-intermediary.pc \
|
||||
tests/lib1/fragment-collision-1.pc \
|
||||
tests/lib1/fragment-collision-2.pc \
|
||||
tests/lib1/fragment-escaping-1.pc \
|
||||
tests/lib1/fragment-escaping-2.pc \
|
||||
tests/lib1/fragment-escaping-3.pc \
|
||||
tests/lib1/fragment-quoting.pc \
|
||||
tests/lib1/fragment-quoting-2.pc \
|
||||
tests/lib1/fragment-quoting-3.pc \
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Name: fragment-escaping-1
|
||||
Version: 0
|
||||
Description: fragment escaping test
|
||||
Cflags: "-IC:\\D E"
|
|
@ -0,0 +1,4 @@
|
|||
Name: fragment-escaping-2
|
||||
Version: 0
|
||||
Description: fragment escaping test
|
||||
Cflags: '-IC:\D E'
|
|
@ -0,0 +1,4 @@
|
|||
Name: fragment-escaping-3
|
||||
Version: 0
|
||||
Description: fragment escaping test
|
||||
Cflags: -IC:\\D\ E
|
|
@ -20,6 +20,9 @@ tests_init \
|
|||
flag_order_4 \
|
||||
quoted \
|
||||
variable_whitespace \
|
||||
fragment_escaping_1 \
|
||||
fragment_escaping_2 \
|
||||
fragment_escaping_3 \
|
||||
fragment_quoting \
|
||||
fragment_quoting_2 \
|
||||
fragment_quoting_3 \
|
||||
|
@ -207,6 +210,27 @@ fragment_quoting_7_body()
|
|||
pkgconf --cflags fragment-quoting-7
|
||||
}
|
||||
|
||||
fragment_escaping_1_body()
|
||||
{
|
||||
atf_check \
|
||||
-o inline:"'-IC:\D E' \n" \
|
||||
pkgconf --with-path="${selfdir}/lib1" --cflags fragment-escaping-1
|
||||
}
|
||||
|
||||
fragment_escaping_2_body()
|
||||
{
|
||||
atf_check \
|
||||
-o inline:"'-IC:\D E' \n" \
|
||||
pkgconf --with-path="${selfdir}/lib1" --cflags fragment-escaping-2
|
||||
}
|
||||
|
||||
fragment_escaping_3_body()
|
||||
{
|
||||
atf_check \
|
||||
-o inline:"'-IC:\D E' \n" \
|
||||
pkgconf --with-path="${selfdir}/lib1" --cflags fragment-escaping-3
|
||||
}
|
||||
|
||||
fragment_quoting_7a_body()
|
||||
{
|
||||
set -x
|
||||
|
|
Loading…
Reference in New Issue