浏览代码

Add new "redis-basics-persistent" test to verify persistence

Tianon Gravi 9 年之前
父节点
当前提交
4136b5ed0b
共有 3 个文件被更改,包括 16 次插入0 次删除
  1. 1 0
      test/config.sh
  2. 1 0
      test/tests/redis-basics-persistent/real-run.sh
  3. 14 0
      test/tests/redis-basics-persistent/run.sh

+ 1 - 0
test/config.sh

@@ -138,6 +138,7 @@ imageTests+=(
 	'
 	[redis]='
 		redis-basics
+		redis-basics-persistent
 	'
 	[rethinkdb]='
 	'

+ 1 - 0
test/tests/redis-basics-persistent/real-run.sh

@@ -0,0 +1 @@
+../redis-basics/run.sh

+ 14 - 0
test/tests/redis-basics-persistent/run.sh

@@ -0,0 +1,14 @@
+#!/bin/bash
+set -eo pipefail
+
+dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
+
+image="$1"
+
+newImage="$("$dir/../image-name.sh" librarytest/redis-basics-persistent "$image")"
+"$dir/../docker-build.sh" "$dir" "$newImage" <<EOD
+FROM $image
+CMD ["--appendonly", "yes"]
+EOD
+
+exec "$dir/real-run.sh" "$newImage"