summaryrefslogtreecommitdiffstats
path: root/debian/tests/0004-redis-check-rdb
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/0004-redis-check-rdb')
-rwxr-xr-xdebian/tests/0004-redis-check-rdb14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/tests/0004-redis-check-rdb b/debian/tests/0004-redis-check-rdb
new file mode 100755
index 0000000..73d5de1
--- /dev/null
+++ b/debian/tests/0004-redis-check-rdb
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# Test redis-check-rdb
+
+set -eu
+
+service redis-server restart
+
+sleep 5
+
+# Perform a synchronous save to ensure .rdb file eixsts
+redis-cli SAVE
+
+redis-check-rdb /var/lib/redis/dump.rdb