Browse code

Add clarification of multiple "go test" calls in hack/make/*test

Tianon Gravi authored on 2013/11/13 03:23:06
Showing 2 changed files
... ...
@@ -22,7 +22,12 @@ bundle_test() {
22 22
 		for test_dir in $(find_test_dirs); do (
23 23
 			set -x
24 24
 			cd $test_dir
25
+			
26
+			# Install packages that are dependencies of the tests.
27
+			#   Note: Does not run the tests.
25 28
 			go test -i -ldflags "$LDFLAGS" $BUILDFLAGS
29
+			
30
+			# Run the tests with the optional $TESTFLAGS.
26 31
 			export TEST_DOCKERINIT_PATH=$DEST/../dynbinary/dockerinit-$VERSION
27 32
 			go test -v -ldflags "$LDFLAGS -X github.com/dotcloud/docker/utils.INITSHA1 \"$DOCKER_INITSHA1\"" $BUILDFLAGS $TESTFLAGS
28 33
 		)  done
... ...
@@ -16,7 +16,12 @@ bundle_test() {
16 16
 		for test_dir in $(find_test_dirs); do (
17 17
 			set -x
18 18
 			cd $test_dir
19
+			
20
+			# Install packages that are dependencies of the tests.
21
+			#   Note: Does not run the tests.
19 22
 			go test -i -ldflags "$LDFLAGS $LDFLAGS_STATIC" $BUILDFLAGS
23
+			
24
+			# Run the tests with the optional $TESTFLAGS.
20 25
 			go test -v -ldflags "$LDFLAGS $LDFLAGS_STATIC" $BUILDFLAGS $TESTFLAGS
21 26
 		)  done
22 27
 	} 2>&1 | tee $DEST/test.log