aboutsummaryrefslogtreecommitdiffstats
path: root/tests/migrations/from-classic.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/migrations/from-classic.test')
-rwxr-xr-xtests/migrations/from-classic.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/migrations/from-classic.test b/tests/migrations/from-classic.test
index 4ee3b616f..a61a5c36f 100755
--- a/tests/migrations/from-classic.test
+++ b/tests/migrations/from-classic.test
@@ -50,3 +50,18 @@ assert_migrated()
setup_home
trigger_migration
assert_migrated
+
+# Test with an existing private-keys-v1.d.
+setup_home
+mkdir "$GNUPGHOME/private-keys-v1.d"
+trigger_migration
+assert_migrated
+
+# Test with an existing private-keys-v1.d with weird permissions.
+setup_home
+mkdir "$GNUPGHOME/private-keys-v1.d"
+chmod 0 "$GNUPGHOME/private-keys-v1.d"
+trigger_migration
+assert_migrated
+
+# XXX Check a case where the migration fails.