diff options
author | Tollef Fog Heen <tfheen@err.no> | 2010-05-27 22:23:40 +0200 |
---|---|---|
committer | Tollef Fog Heen <tfheen@err.no> | 2010-05-27 22:23:40 +0200 |
commit | 4c6ff1c3d5dfe60a4f37c8ba11c080054101a3b0 (patch) | |
tree | d2c774fe7d1463b4a21de2986b619ba28a7ffaff | |
parent | 6a27c57057df8c05815b4816aea78b41ae57336e (diff) |
Add test case for empty fields
Make sure we don't run into the bug fixed by 6a27c57 again.
-rwxr-xr-x | check/check-cflags | 4 | ||||
-rwxr-xr-x | check/check-libs | 3 | ||||
-rw-r--r-- | check/fields-blank.pc | 11 |
3 files changed, 18 insertions, 0 deletions
diff --git a/check/check-cflags b/check/check-cflags index 9d517c8..eb2d6bc 100755 --- a/check/check-cflags +++ b/check/check-cflags @@ -11,5 +11,9 @@ set -e ARGS="--cflags simple" RESULT="" +run_test +ARGS="--cflags fields-blank" +RESULT="" run_test + diff --git a/check/check-libs b/check/check-libs index d124970..9b1b495 100755 --- a/check/check-libs +++ b/check/check-libs @@ -15,5 +15,8 @@ if [ "$list_indirect_deps" = "yes" ]; then else RESULT="-lsimple" fi +run_test +ARGS="--libs fields-blank" +RESULT="" run_test diff --git a/check/fields-blank.pc b/check/fields-blank.pc new file mode 100644 index 0000000..f56c810 --- /dev/null +++ b/check/fields-blank.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: Simple test +Description: Dummy pkgconfig test package for testing pkgconfig +Version: 1.0.0 +Requires: +Libs: +Cflags: |