tests: add testcases for #163

feature/tap-sh
William Pitcock 2017-12-14 22:13:19 -06:00
parent 18abb4ccc1
commit 6073a49229
5 changed files with 39 additions and 0 deletions

View File

@ -72,6 +72,9 @@ EXTRA_DIST = pkg.m4 \
tests/lib1/fragment-collision-intermediary.pc \ tests/lib1/fragment-collision-intermediary.pc \
tests/lib1/fragment-collision-1.pc \ tests/lib1/fragment-collision-1.pc \
tests/lib1/fragment-collision-2.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.pc \
tests/lib1/fragment-quoting-2.pc \ tests/lib1/fragment-quoting-2.pc \
tests/lib1/fragment-quoting-3.pc \ tests/lib1/fragment-quoting-3.pc \

View File

@ -0,0 +1,4 @@
Name: fragment-escaping-1
Version: 0
Description: fragment escaping test
Cflags: "-IC:\\D E"

View File

@ -0,0 +1,4 @@
Name: fragment-escaping-2
Version: 0
Description: fragment escaping test
Cflags: '-IC:\D E'

View File

@ -0,0 +1,4 @@
Name: fragment-escaping-3
Version: 0
Description: fragment escaping test
Cflags: -IC:\\D\ E

View File

@ -20,6 +20,9 @@ tests_init \
flag_order_4 \ flag_order_4 \
quoted \ quoted \
variable_whitespace \ variable_whitespace \
fragment_escaping_1 \
fragment_escaping_2 \
fragment_escaping_3 \
fragment_quoting \ fragment_quoting \
fragment_quoting_2 \ fragment_quoting_2 \
fragment_quoting_3 \ fragment_quoting_3 \
@ -207,6 +210,27 @@ fragment_quoting_7_body()
pkgconf --cflags fragment-quoting-7 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() fragment_quoting_7a_body()
{ {
set -x set -x