aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2017-01-25 10:18:23 +0000
committerJustus Winter <[email protected]>2017-01-25 10:18:23 +0000
commit5f2da5d439debf44615a97de788d8f720b517972 (patch)
treec2e2434c34ba0a1e0f235c9993728054ad4ed090
parenttests,w32: Fix locating GPGME's tests on Windows. (diff)
downloadgnupg-5f2da5d439debf44615a97de788d8f720b517972.tar.gz
gnupg-5f2da5d439debf44615a97de788d8f720b517972.zip
tests: Skip GPGME tests that are not built.
* tests/gpgme/wrap.scm: Skip tests that are not built. -- Previously, all tests from GPGME's test suite that were not built (e.g. because GPGME was not configured with QT) were marked as failures. Signed-off-by: Justus Winter <[email protected]>
-rw-r--r--tests/gpgme/wrap.scm7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/gpgme/wrap.scm b/tests/gpgme/wrap.scm
index 4f3ae7d4d..e8f2b1fa3 100644
--- a/tests/gpgme/wrap.scm
+++ b/tests/gpgme/wrap.scm
@@ -56,5 +56,8 @@
(log "Importing extra key...")
(call-check `(,@GPG --yes --import ,(in-srcdir "pubkey-1.asc"))))))
-(log "Running" (car executable))
-(exit (run executable))
+(if (file-exists? (car executable))
+ (begin
+ (log "Running" (car executable))
+ (exit (run executable)))
+ (skip (car executable) "is not built"))