summaryrefslogtreecommitdiff
path: root/tests/account-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/account-store.c')
-rw-r--r--tests/account-store.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/account-store.c b/tests/account-store.c
index 15e43ead..fd5cc4a8 100644
--- a/tests/account-store.c
+++ b/tests/account-store.c
@@ -28,6 +28,7 @@
#include <glib-object.h>
#include "account-store-keyfile.h"
+#include "account-store-variant-file.h"
#define DOCSTRING_A \
"%s OP BACKEND ACCOUNT [KEY [VALUE]]\n\n" \
@@ -70,6 +71,13 @@ const Backend backends[] = {
keyfile_exists,
keyfile_list },
+ { "variant-file",
+ variant_get,
+ NULL,
+ variant_delete,
+ variant_exists,
+ variant_list },
+
#if ENABLE_LIBACCOUNTS_SSO
{ "libaccounts",
libaccounts_get,
@@ -182,6 +190,12 @@ int main (int argc, char **argv)
break;
case OP_SET:
+ if (store->set == NULL)
+ {
+ g_printerr ("Listing is unimplemented for this backend");
+ break;
+ }
+
success = store->set (account, setting, value);
output = g_strdup_printf ("%s.%s set to '%s' in %s",
account, setting, value, store->name);