From 5f2da5d439debf44615a97de788d8f720b517972 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 25 Jan 2017 11:18:23 +0100 Subject: [PATCH] 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 --- tests/gpgme/wrap.scm | 7 +++++-- 1 file 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"))