Skip to content

Instantly share code, notes, and snippets.

@akerl
Created January 3, 2014 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akerl/8245192 to your computer and use it in GitHub Desktop.
Save akerl/8245192 to your computer and use it in GitHub Desktop.
root@localhost:/opt/docker# make test
docker build -t docker .
Uploading context 36.21 MB
# Skipping unknown instruction DOCKER-VERSION
Step 1 : FROM stackbrew/ubuntu:12.04
---> 3aa646e4f1d2
Step 2 : MAINTAINER Tianon Gravi <admwiggin@gmail.com> (@tianon)
---> Using cache
---> 2ac849e86cdc
Step 3 : RUN echo 'deb http://archive.ubuntu.com/ubuntu precise-backports main universe' > /etc/apt/sources.list.d/backports.list
---> Using cache
---> 1931b86a5da1
Step 4 : RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq apt-utils aufs-tools build-essential curl dpkg-sig git iptables libsqlite3-dev lxc mercurial reprepro ruby1.9.1 ruby1.9.1-dev s3cmd=1.1.0* --no-install-recommends
---> Using cache
---> 3645d4d5a42f
Step 5 : RUN git clone https://git.fedorahosted.org/git/lvm2.git /usr/local/lvm2 && cd /usr/local/lvm2 && git checkout -q v2_02_103
---> Using cache
---> 0059512d321c
Step 6 : RUN cd /usr/local/lvm2 && ./configure --enable-static_link && make device-mapper && make install_device-mapper
---> Using cache
---> 561483b8a18a
Step 7 : RUN curl -s https://go.googlecode.com/files/go1.2.src.tar.gz | tar -v -C /usr/local -xz
---> Using cache
---> baf0ca897bdd
Step 8 : ENV PATH /usr/local/go/bin:$PATH
---> Using cache
---> 8c4889ae3432
Step 9 : ENV GOPATH /go:/go/src/github.com/dotcloud/docker/vendor
---> Using cache
---> ce63cbaff7f6
Step 10 : RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
---> Using cache
---> 76b4ae8bc334
Step 11 : ENV DOCKER_CROSSPLATFORMS darwin/amd64 darwin/386
---> Using cache
---> 8948f40bb924
Step 12 : RUN cd /usr/local/go/src && bash -xc 'for platform in $DOCKER_CROSSPLATFORMS; do GOOS=${platform%/*} GOARCH=${platform##*/} ./make.bash --no-clean 2>&1; done'
---> Using cache
---> ad459eafb937
Step 13 : RUN go get code.google.com/p/go.tools/cmd/cover
---> Using cache
---> 456aec29a42f
Step 14 : RUN gem install --no-rdoc --no-ri fpm --version 1.0.1
---> Using cache
---> 778033cd6964
Step 15 : RUN /bin/echo -e '[default]\naccess_key=$AWS_ACCESS_KEY\nsecret_key=$AWS_SECRET_KEY' > /.s3cfg
---> Using cache
---> 58843ae65141
Step 16 : VOLUME /var/lib/docker
---> Using cache
---> da7cea42ee3a
Step 17 : WORKDIR /go/src/github.com/dotcloud/docker
---> Using cache
---> a062ceda4a51
Step 18 : ENTRYPOINT ["hack/dind"]
---> Using cache
---> 319bfd5fa7e5
Step 19 : ADD . /go/src/github.com/dotcloud/docker
---> cb2a77588634
Successfully built cb2a77588634
docker run -rm -i -t -privileged -e TESTFLAGS -v /opt/docker/bundles:/go/src/github.com/dotcloud/docker/bundles docker hack/make.sh test test-integration
bundles/0.7.2-dev already exists. Removing.
---> Making bundle: test (in bundles/0.7.2-dev/test)
Fri Jan 3 19:44:07 UTC 2014
++ cd .
++ go test -cover -coverprofile /go/src/github.com/dotcloud/docker/bundles/0.7.2-dev/test/coverprofiles/docker -ldflags '-X main.GITCOMMIT "58ec785" -X main.VERSION "0.7.2-dev" -w -X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"' -tags netgo -a
PASS
coverage: 9.9% of statements
ok github.com/dotcloud/docker 1.640s
++ cd ./archive
++ go test -cover -coverprofile /go/src/github.com/dotcloud/docker/bundles/0.7.2-dev/test/coverprofiles/docker-archive -ldflags '-X main.GITCOMMIT "58ec785" -X main.VERSION "0.7.2-dev" -w -X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"' -tags netgo -a
PASS
coverage: 59.8% of statements
ok github.com/dotcloud/docker/archive 0.697s
++ cd ./auth
++ go test -cover -coverprofile /go/src/github.com/dotcloud/docker/bundles/0.7.2-dev/test/coverprofiles/docker-auth -ldflags '-X main.GITCOMMIT "58ec785" -X main.VERSION "0.7.2-dev" -w -X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"' -tags netgo -a
PASS
coverage: 32.3% of statements
ok github.com/dotcloud/docker/auth 0.009s
++ cd ./engine
++ go test -cover -coverprofile /go/src/github.com/dotcloud/docker/bundles/0.7.2-dev/test/coverprofiles/docker-engine -ldflags '-X main.GITCOMMIT "58ec785" -X main.VERSION "0.7.2-dev" -w -X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"' -tags netgo -a
[/tmp/docker-testf9f7-TestRegister-391133345|54b168fe] Register(dummy1) (handlers=map[dummy1:<nil>])
[/tmp/docker-testf9f7-TestRegister-391133345|54b168fe] Register(dummy2) (handlers=map[dummy1:<nil>])
[/tmp/docker-testf9f7-TestRegister-391133345|54b168fe] Register(dummy2) (handlers=map[dummy1:<nil> dummy2:<nil>])
[/tmp/docker-testf9f7-TestJob-922393484|673100b1] Register(dummy2) (handlers=map[dummy1:<nil>])
[/tmp/docker-testf9f7-TestEngineLogf-491388800|a5921866] Test log line
[/tmp/docker-testf9f7-TestJobStatusOK-635653928|ba08c9f3] Register(return_ok) (handlers=map[dummy1:<nil>])
[/tmp/docker-testf9f7-TestJobStatusOK-635653928|ba08c9f3] +job return_ok()
[/tmp/docker-testf9f7-TestJobStatusOK-635653928|ba08c9f3] -job return_ok() = OK (0)
[/tmp/docker-testf9f7-TestJobStatusErr-970006119|d626d4a6] Register(return_err) (handlers=map[dummy1:<nil>])
[/tmp/docker-testf9f7-TestJobStatusErr-970006119|d626d4a6] +job return_err()
[/tmp/docker-testf9f7-TestJobStatusErr-970006119|d626d4a6] -job return_err() = ERR (1)
[/tmp/docker-testf9f7-TestJobStatusNotFound-817982618|08344278] Register(return_not_found) (handlers=map[dummy1:<nil>])
[/tmp/docker-testf9f7-TestJobStatusNotFound-817982618|08344278] +job return_not_found()
[/tmp/docker-testf9f7-TestJobStatusNotFound-817982618|08344278] -job return_not_found() = ERR (127)
[/tmp/docker-testf9f7-TestJobStdoutString-862192945|74249f67] Register(say_something_in_stdout) (handlers=map[dummy1:<nil>])
[/tmp/docker-testf9f7-TestJobStdoutString-862192945|74249f67] +job say_something_in_stdout()
[/tmp/docker-testf9f7-TestJobStdoutString-862192945|74249f67] -job say_something_in_stdout() = OK (0)
[/tmp/docker-testf9f7-TestJobStderrString-252592348|cd1af905] Register(say_something_in_stderr) (handlers=map[dummy1:<nil>])
[/tmp/docker-testf9f7-TestJobStderrString-252592348|cd1af905] +job say_something_in_stderr()
Warning, something might happen
Here it comes!
Oh no...
Something happened
[/tmp/docker-testf9f7-TestJobStderrString-252592348|cd1af905] -job say_something_in_stderr() = OK (0)
PASS
coverage: 76.0% of statements
ok github.com/dotcloud/docker/engine 0.013s
++ cd ./graphdriver/aufs
++ go test -cover -coverprofile /go/src/github.com/dotcloud/docker/bundles/0.7.2-dev/test/coverprofiles/docker-graphdriver-aufs -ldflags '-X main.GITCOMMIT "58ec785" -X main.VERSION "0.7.2-dev" -w -X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"' -tags netgo -a
--- FAIL: TestNewDriver (0.58 seconds)
aufs_test.go:37: AUFS was not found in /proc/filesystems
--- FAIL: TestAufsString (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestCreateDirStructure (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestNewDriverFromExistingDir (0.00 seconds)
aufs_test.go:78: AUFS was not found in /proc/filesystems
--- FAIL: TestCreateNewDir (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestCreateNewDirStructure (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestRemoveImage (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestGetWithoutParent (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestCleanupWithNoDirs (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestCleanupWithDir (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestMountedFalseResponse (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestMountedTrueReponse (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestMountWithParent (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestRemoveMountedDir (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestCreateWithInvalidParent (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestGetDiff (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestChanges (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestDiffSize (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestChildDiffSize (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestExists (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestStatus (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestApplyDiff (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
--- FAIL: TestMountMoreThan42Layers (0.00 seconds)
aufs_test.go:25: AUFS was not found in /proc/filesystems
FAIL
exit status 1
FAIL github.com/dotcloud/docker/graphdriver/aufs 0.653s
Tests failed: ./graphdriver/aufs
++ cd ./graphdriver/devmapper
++ go test -cover -coverprofile /go/src/github.com/dotcloud/docker/bundles/0.7.2-dev/test/coverprofiles/docker-graphdriver-devmapper -ldflags '-X main.GITCOMMIT "58ec785" -X main.VERSION "0.7.2-dev" -w -X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"' -tags netgo -a
PASS
coverage: 43.1% of statements
ok github.com/dotcloud/docker/graphdriver/devmapper 0.018s
++ cd ./mount
++ go test -cover -coverprofile /go/src/github.com/dotcloud/docker/bundles/0.7.2-dev/test/coverprofiles/docker-mount -ldflags '-X main.GITCOMMIT "58ec785" -X main.VERSION "0.7.2-dev" -w -X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"' -tags netgo -a
PASS
coverage: 77.8% of statements
ok github.com/dotcloud/docker/mount 0.014s
++ cd ./pkg/graphdb
++ go test -cover -coverprofile /go/src/github.com/dotcloud/docker/bundles/0.7.2-dev/test/coverprofiles/docker-pkg-graphdb -ldflags '-X main.GITCOMMIT "58ec785" -X main.VERSION "0.7.2-dev" -w -X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"' -tags netgo -a
PASS
coverage: 76.9% of statements
ok github.com/dotcloud/docker/pkg/graphdb 0.089s
++ cd ./pkg/namesgenerator
++ go test -cover -coverprofile /go/src/github.com/dotcloud/docker/bundles/0.7.2-dev/test/coverprofiles/docker-pkg-namesgenerator -ldflags '-X main.GITCOMMIT "58ec785" -X main.VERSION "0.7.2-dev" -w -X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"' -tags netgo -a
PASS
coverage: 100.0% of statements
ok github.com/dotcloud/docker/pkg/namesgenerator 0.008s
++ cd ./proxy
++ go test -cover -coverprofile /go/src/github.com/dotcloud/docker/bundles/0.7.2-dev/test/coverprofiles/docker-proxy -ldflags '-X main.GITCOMMIT "58ec785" -X main.VERSION "0.7.2-dev" -w -X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"' -tags netgo -a
PASS
coverage: 81.7% of statements
ok github.com/dotcloud/docker/proxy 0.012s
++ cd ./registry
++ go test -cover -coverprofile /go/src/github.com/dotcloud/docker/bundles/0.7.2-dev/test/coverprofiles/docker-registry -ldflags '-X main.GITCOMMIT "58ec785" -X main.VERSION "0.7.2-dev" -w -X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"' -tags netgo -a
2014/01/03 19:45:15 http: multiple response.WriteHeader calls
PASS
coverage: 64.4% of statements
ok github.com/dotcloud/docker/registry 0.424s
++ cd ./utils
++ go test -cover -coverprofile /go/src/github.com/dotcloud/docker/bundles/0.7.2-dev/test/coverprofiles/docker-utils -ldflags '-X main.GITCOMMIT "58ec785" -X main.VERSION "0.7.2-dev" -w -X github.com/dotcloud/docker/utils.IAMSTATIC true -linkmode external -extldflags "-lpthread -static -Wl,--unresolved-symbols=ignore-in-object-files"' -tags netgo -a
PASS
coverage: 29.7% of statements
ok github.com/dotcloud/docker/utils 0.016s
Test failures in: ./graphdriver/aufs
make: *** [test] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment