]> git.eshelyaron.com Git - emacs.git/commitdiff
Run secrets suite test when Emacs has dbus support
authorTino Calancha <tino.calancha@gmail.com>
Thu, 5 Apr 2018 23:55:39 +0000 (08:55 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Fri, 6 Apr 2018 00:01:21 +0000 (09:01 +0900)
* test/lisp/net/secrets-tests.el (secrets-test00-availability)
(secrets-test01-sessions, secrets-test02-collections)
(secrets-test03-items, secrets-test04-search): Skip test
unless Emacs is compiled with dbus support.

test/lisp/net/secrets-tests.el

index dc9c7f1004a019840ebc7a0667ac5fb313455223..352a7c362dd4a82a37365ce8ff11d7f786b1afc0 100644 (file)
@@ -28,6 +28,7 @@
 
 (ert-deftest secrets-test00-availability ()
   "Test availability of Secret Service API."
+  (skip-unless (featurep 'dbusbind))
   :expected-result (if secrets-enabled :passed :failed)
   (should secrets-enabled)
   (should (dbus-ping :session secrets-service))
@@ -58,6 +59,7 @@
 
 (ert-deftest secrets-test01-sessions ()
   "Test opening / closing a secrets session."
+  (skip-unless (featurep 'dbusbind))
   (skip-unless secrets-enabled)
   (skip-unless (secrets-empty-path secrets-session-path))
 
@@ -83,6 +85,7 @@
 
 (ert-deftest secrets-test02-collections ()
   "Test creation / deletion a secrets collections."
+  (skip-unless (featurep 'dbusbind))
   (skip-unless secrets-enabled)
   (skip-unless (secrets-empty-path secrets-session-path))
 
 
 (ert-deftest secrets-test03-items ()
   "Test creation / deletion a secret item."
+  (skip-unless (featurep 'dbusbind))
   (skip-unless secrets-enabled)
   (skip-unless (secrets-empty-path secrets-session-path))
 
 
 (ert-deftest secrets-test04-search ()
   "Test searching of secret items."
+  (skip-unless (featurep 'dbusbind))
   (skip-unless secrets-enabled)
   (skip-unless (secrets-empty-path secrets-session-path))