tests: Check for gpgtar.
authorJustus Winter <justus@g10code.com>
Fri, 15 Jul 2016 09:59:57 +0000 (11:59 +0200)
committerJustus Winter <justus@g10code.com>
Fri, 15 Jul 2016 09:59:57 +0000 (11:59 +0200)
* tests/migrations/extended-pkf.scm: Skip test if gpgtar is not built.
* tests/migrations/from-classic.scm: Likewise.
* tests/openpgp/gpgtar.scm: Fix check for gpgtar.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/migrations/extended-pkf.scm
tests/migrations/from-classic.scm
tests/openpgp/gpgtar.scm

index 3e76532..bf2c49e 100755 (executable)
@@ -19,6 +19,9 @@
 
 (load (with-path "common.scm"))
 
+(catch (skip "gpgtar not built")
+       (call-check `(,GPGTAR --help)))
+
 (define src-tarball (in-srcdir "extended-pkf.tar.asc"))
 
 (define (setup)
index 2128532..d540470 100755 (executable)
@@ -19,6 +19,9 @@
 
 (load (with-path "common.scm"))
 
+(catch (skip "gpgtar not built")
+       (call-check `(,GPGTAR --help)))
+
 (define src-tarball (in-srcdir "from-classic.tar.asc"))
 
 (define (setup)
index 07f2fd7..15f528f 100755 (executable)
@@ -19,8 +19,8 @@
 
 (load (with-path "defs.scm"))
 
-(unless (= 0 (call `(,(tool 'gpgtar) --help)))
-       (skip "gpgtar not installed"))
+(catch (skip "gpgtar not built")
+       (call-check `(,(tool 'gpgtar) --help)))
 
 (define testfiles (append plain-files data-files))
 (define gpgargs