summaryrefslogtreecommitdiff
path: root/check/check-missing
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2009-03-30 20:49:17 +0200
committerTollef Fog Heen <tfheen@err.no>2009-03-30 20:49:17 +0200
commit669bfe2e0d5d761071a41bbbd771228b2b649187 (patch)
tree36e0730c2bda665bc6623be528ba97da954d733e /check/check-missing
parent02d5ae3fb61c52f642d3b6b41973f12372fcdc60 (diff)
2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.[ch], main.c, check/check-missing: Don't recurse Requires at all unless we need to. Add check. Again, thanks to Loïc Minier for most of the idea and the implementation.
Diffstat (limited to 'check/check-missing')
-rwxr-xr-xcheck/check-missing26
1 files changed, 26 insertions, 0 deletions
diff --git a/check/check-missing b/check/check-missing
index bd2650c..667de6c 100755
--- a/check/check-missing
+++ b/check/check-missing
@@ -50,3 +50,29 @@ ARGS="--variable includedir missing-requires-private"
EXPECT_RETURN=0
RESULT="/usr/include/somedir"
run_test
+
+# tests below are on an existing package, but with missing Requires; when
+# pkg-config outputs error, the actual error text isn't checked
+# package exists
+ARGS="missing-requires"
+EXPECT_RETURN=0
+RESULT=""
+run_test
+
+# Libs should fail
+ARGS="--silence-errors --libs missing-requires"
+EXPECT_RETURN=1
+RESULT=""
+run_test
+
+# Cflags should fail
+ARGS="--silence-errors --cflags missing-requires"
+EXPECT_RETURN=1
+RESULT=""
+run_test
+
+# get includedir var
+ARGS="--variable includedir missing-requires"
+EXPECT_RETURN=0
+RESULT="/usr/include/somedir"
+run_test