tests: Skip GPGME tests that are not built.
authorJustus Winter <justus@g10code.com>
Wed, 25 Jan 2017 10:18:23 +0000 (11:18 +0100)
committerJustus Winter <justus@g10code.com>
Wed, 25 Jan 2017 10:18:23 +0000 (11:18 +0100)
* 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 <justus@g10code.com>
tests/gpgme/wrap.scm

index 4f3ae7d..e8f2b1f 100644 (file)
@@ -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"))