Эх сурвалжийг харах

Merge pull request #674 from infosiftr/test-debian

Add debian-apt-get test
yosifkit 10 жил өмнө
parent
commit
2023911fff

+ 6 - 0
test/config.sh

@@ -11,6 +11,9 @@ declare -A testAlias=(
 	[jruby]='ruby'
 	[pypy]='python'
 
+	[ubuntu]='debian'
+	[ubuntu-debootstrap]='debian'
+
 	[mariadb]='mysql'
 	[percona]='mysql'
 )
@@ -26,6 +29,9 @@ declare -A imageTests=(
 	'
 	[crate]='
 	'
+	[debian]='
+		debian-apt-get
+	'
 	[django]='
 	'
 	[elasticsearch]='

+ 15 - 0
test/tests/debian-apt-get/container.sh

@@ -0,0 +1,15 @@
+#!/bin/bash
+set -e
+
+# We have to eat stderr here because of:
+# W: Conflicting distribution: http://http.debian.net rc-buggy InRelease (expected rc-buggy but got experimental)
+# W: Conflicting distribution: http://archive.ubuntu.com devel Release (expected devel but got vivid)
+# W: Conflicting distribution: http://archive.ubuntu.com devel-updates Release (expected devel-updates but got vivid)
+# W: Conflicting distribution: http://archive.ubuntu.com devel-security Release (expected devel-security but got vivid)
+apt-get update &> /dev/null
+
+# We have to eat stderr here because of:
+# debconf: delaying package configuration, since apt-utils is not installed
+apt-get install -y hello &> /dev/null
+
+exec hello

+ 1 - 0
test/tests/debian-apt-get/expected-std-out.txt

@@ -0,0 +1 @@
+Hello, world!

+ 1 - 0
test/tests/debian-apt-get/run.sh

@@ -0,0 +1 @@
+../run-bash-in-container.sh