Browse Source

Add new redis-basics-config test

Tianon Gravi 9 years ago
parent
commit
e82eb91f9e

+ 1 - 0
test/config.sh

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

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

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

+ 15 - 0
test/tests/redis-basics-config/run.sh

@@ -0,0 +1,15 @@
+#!/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
+RUN echo 'save 60 1000' > ../test.conf
+CMD ["../test.conf", "--appendonly", "yes"]
+EOD
+
+exec "$dir/real-run.sh" "$newImage"