Browse code

Add separate "test-integration" bundlescript (and corresponding dyntest-integration bundlescript)

Tianon Gravi authored on 2013/12/09 10:41:50
Showing 4 changed files
... ...
@@ -14,7 +14,7 @@ doc:
14 14
 	docker build -t docker-docs docs && docker run -p 8000:8000 docker-docs
15 15
 
16 16
 test: build
17
-	$(DOCKER_RUN_DOCKER) hack/make.sh test
17
+	$(DOCKER_RUN_DOCKER) hack/make.sh test test-integration
18 18
 
19 19
 shell: build
20 20
 	$(DOCKER_RUN_DOCKER) bash
... ...
@@ -35,8 +35,10 @@ grep -q "$RESOLVCONF" /proc/mounts || {
35 35
 DEFAULT_BUNDLES=(
36 36
 	binary
37 37
 	test
38
+	test-integration
38 39
 	dynbinary
39 40
 	dyntest
41
+	dyntest-integration
40 42
 	tgz
41 43
 	ubuntu
42 44
 )
43 45
new file mode 100644
... ...
@@ -0,0 +1,17 @@
0
+#!/bin/bash
1
+
2
+DEST=$1
3
+INIT=$DEST/../dynbinary/dockerinit-$VERSION
4
+
5
+set -e
6
+
7
+if [ ! -x "$INIT" ]; then
8
+	echo >&2 'error: dynbinary must be run before dyntest-integration'
9
+	false
10
+fi
11
+
12
+(
13
+	export TEST_DOCKERINIT_PATH="$INIT"
14
+	export LDFLAGS_STATIC="-X github.com/dotcloud/docker/utils.INITSHA1 \"$DOCKER_INITSHA1\""
15
+	source "$(dirname "$BASH_SOURCE")/test-integration"
16
+)
0 17
new file mode 100644
... ...
@@ -0,0 +1,11 @@
0
+#!/bin/bash
1
+
2
+DEST=$1
3
+
4
+set -e
5
+
6
+bundle_test_integration() {
7
+	LDFLAGS="$LDFLAGS $LDFLAGS_STATIC" go_test_dir ./integration
8
+}
9
+
10
+bundle_test_integration 2>&1 | tee $DEST/test.log