Checking docs
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update github.com/gorilla/mux failed; trying to fetch newer version
update github.com/mvo5/goconfigparser failed; trying to fetch newer version
github.com/gorilla/mux now at ee1815431e497d3850809578c93ab6705f1a19f7
update github.com/cheggaaa/pb failed; trying to fetch newer version
github.com/mvo5/goconfigparser now at 26426272dda20cc76aa1fa44286dc743d2972fe8
update github.com/mvo5/uboot-go failed; trying to fetch newer version
github.com/cheggaaa/pb now at e8c7cc515bfde3e267957a3b110080ceed51354e
update gopkg.in/check.v1 failed; trying to fetch newer version
github.com/mvo5/uboot-go now at 361f6ebcbb54f389d15dc9faefa000e996ba3e37
update github.com/gosexy/gettext failed; trying to fetch newer version
gopkg.in/check.v1 now at 64131543e7896d5bcc6bd5a76287eb75ea96c673
update github.com/peterh/liner failed; trying to fetch newer version
github.com/gosexy/gettext now at 98b7b91596d20b96909e6b60d57411547dd9959c
update gopkg.in/tomb.v2 failed; trying to fetch newer version
github.com/peterh/liner now at 1bb0d1c1a25ed393d8feb09bab039b2b1b1fbced
update code.google.com/p/go.crypto failed; trying to fetch newer version
gopkg.in/tomb.v2 now at 14b3d72120e8d10ea6e6b7f87f7175734b1faab8
update github.com/blakesmith/ar failed; trying to fetch newer version
code.google.com/p/go.crypto now at 69e2a90ed92d03812364aeb947b7068dc42e561e
update github.com/coreos/go-systemd failed; trying to fetch newer version
github.com/blakesmith/ar now at c9a977dd0cc1392b023382c7bfa5a22af8d3b730
update github.com/gorilla/context failed; trying to fetch newer version
github.com/coreos/go-systemd now at f743bc15d6bddd23662280b4ad20f7c874cdd5ad
update github.com/jessevdk/go-flags failed; trying to fetch newer version
github.com/gorilla/context now at 1c83b3eabd45b6d76072b66b746c20815fb2872d
update golang.org/x/crypto failed; trying to fetch newer version
github.com/jessevdk/go-flags now at 1acbbaff2f347c412a0c7884873bd72cc9c1f5b4
update gopkg.in/yaml.v2 failed; trying to fetch newer version
golang.org/x/crypto now at 60052bd85f2d91293457e8811b0cf26b773de469
gopkg.in/yaml.v2 now at 49c95bdc21843256fb6c4e0d370a05f24a0bf213
Building
Running tests from /tmp/tmp.YRgRWPKpsg/src/launchpad.net/snappy
? launchpad.net/snappy/cmd/snapd [no test files]
=== RUN Test
OK: 12 passed
--- PASS: Test (0.04 seconds)
PASS
coverage: 21.2% of statements
ok launchpad.net/snappy/cmd/snappy 0.051s coverage: 21.2% of statements
=== RUN Test
OK: 53 passed
--- PASS: Test (0.35 seconds)
PASS
coverage: 91.7% of statements
ok launchpad.net/snappy/coreconfig 0.352s coverage: 91.7% of statements
=== RUN Test
OK: 39 passed
--- PASS: Test (0.16 seconds)
PASS
coverage: 69.8% of statements
ok launchpad.net/snappy/daemon 0.172s coverage: 69.8% of statements
? launchpad.net/snappy/dirs [no test files]
=== RUN Test
OK: 64 passed
--- PASS: Test (0.36 seconds)
PASS
coverage: 79.2% of statements
ok launchpad.net/snappy/helpers 0.371s coverage: 79.2% of statements
=== RUN Test
OK: 0 passed, 2 skipped
--- PASS: Test (0.01 seconds)
PASS
coverage: 33.3% of statements
ok launchpad.net/snappy/i18n 0.013s coverage: 33.3% of statements
=== RUN Test
OK: 16 passed
--- PASS: Test (0.01 seconds)
PASS
coverage: 92.6% of statements
ok launchpad.net/snappy/i18n/xgettext-go 0.023s coverage: 92.6% of statements
=== RUN Test
OK: 6 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 93.5% of statements
ok launchpad.net/snappy/logger 0.008s coverage: 93.5% of statements
=== RUN Test
OK: 4 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 100.0% of statements
ok launchpad.net/snappy/oauth 0.005s coverage: 100.0% of statements
=== RUN Test
OK: 42 passed
--- PASS: Test (0.46 seconds)
PASS
coverage: 74.7% of statements
ok launchpad.net/snappy/partition 0.464s coverage: 74.7% of statements
=== RUN Test
OK: 3 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 100.0% of statements
ok launchpad.net/snappy/pkg 0.004s coverage: 100.0% of statements
=== RUN Test
OK: 18 passed
--- PASS: Test (0.30 seconds)
PASS
coverage: 74.4% of statements
ok launchpad.net/snappy/pkg/clickdeb 0.309s coverage: 74.4% of statements
=== RUN Test
OK: 20 passed
--- PASS: Test (0.07 seconds)
=== RUN: ExamplePartBag
--- PASS: ExamplePartBag (8.427771ms)
PASS
coverage: 93.5% of statements
ok launchpad.net/snappy/pkg/lightweight 0.088s coverage: 93.5% of statements
? launchpad.net/snappy/pkg/remote [no test files]
=== RUN Test
OK: 3 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 94.4% of statements
ok launchpad.net/snappy/pkg/removed 0.010s coverage: 94.4% of statements
=== RUN Test
OK: 10 passed
--- PASS: Test (0.08 seconds)
PASS
coverage: 70.0% of statements
ok launchpad.net/snappy/pkg/snapfs 0.098s coverage: 70.0% of statements
=== RUN Test
OK: 12 passed
--- PASS: Test (0.11 seconds)
PASS
coverage: 94.3% of statements
ok launchpad.net/snappy/policy 0.124s coverage: 94.3% of statements
=== RUN Test
OK: 5 passed
--- PASS: Test (0.20 seconds)
PASS
coverage: 91.1% of statements
ok launchpad.net/snappy/priv 0.209s coverage: 91.1% of statements
=== RUN Test
OK: 4 passed
--- PASS: Test (0.01 seconds)
PASS
coverage: 50.0% of statements
ok launchpad.net/snappy/progress 0.027s coverage: 50.0% of statements
=== RUN Test
OK: 9 passed
--- PASS: Test (0.01 seconds)
PASS
coverage: 96.4% of statements
ok launchpad.net/snappy/provisioning 0.011s coverage: 96.4% of statements
=== RUN Test
OK: 6 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 95.0% of statements
ok launchpad.net/snappy/release 0.007s coverage: 95.0% of statements
=== RUN Test
bin/foo
meta/package.yaml
.click/info/hello-app.origin.manifest
OOPS: 305 passed, 1 FAILED
--- FAIL: Test (11.47 seconds)
FAIL
FAIL launchpad.net/snappy/snappy 11.485s
=== RUN Test
OK: 20 passed
--- PASS: Test (0.52 seconds)
PASS
coverage: 74.0% of statements
ok launchpad.net/snappy/systemd 0.532s coverage: 74.0% of statements
Crushing failure and despair.
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly
mkdir -p $GOPATH/src/launchpad.net/snappy
cp -a . $GOPATH/src/launchpad.net/snappy/
cd $GOPATH/src/launchpad.net/snappy
sh -v ./run-checks
#!/bin/sh
set -eu
if which goctest >/dev/null; then
goctest="goctest"
else
goctest="go test"
fi
QUICK=""
if [ "${1:-}" = "--quick" ]; then
QUICK=yes
fi
endmsg() {
if [ $? -eq 0 ]; then p="success.txt"
m="All good, what could possibly go wrong."
else p="failure.txt"
m="Crushing failure and despair."
fi
echo
if [ -t 1 -a -z "$QUICK" ]; then
cat "data/$p"
else
echo "$m"
fi
}
trap endmsg EXIT
echo Checking docs
./mdlint.py docs/*.md
echo Checking formatting
fmt=$(gofmt -l .)
if [ -n "$fmt" ]; then
echo "Formatting wrong in following files"
echo "$fmt"
exit 1
fi
if [ -z "$QUICK" ]; then
echo Installing godeps
go get launchpad.net/godeps
export PATH=$PATH:$GOPATH/bin
echo Install golint
go get github.com/golang/lint/golint
export PATH=$PATH:$GOPATH/bin
The attempt to merge lp:~chipaca/snappy/atomic-follow-symlinks into lp:snappy failed. Below is the output from the failed tests.
Checking docs com/gorilla/ mux failed; trying to fetch newer version com/mvo5/ goconfigparser failed; trying to fetch newer version com/gorilla/ mux now at ee1815431e497d3 850809578c93ab6 705f1a19f7 com/cheggaaa/ pb failed; trying to fetch newer version com/mvo5/ goconfigparser now at 26426272dda20cc 76aa1fa44286dc7 43d2972fe8 com/mvo5/ uboot-go failed; trying to fetch newer version com/cheggaaa/ pb now at e8c7cc515bfde3e 267957a3b110080 ceed51354e com/mvo5/ uboot-go now at 361f6ebcbb54f38 9d15dc9faefa000 e996ba3e37 com/gosexy/ gettext failed; trying to fetch newer version bcc6bd5a76287eb 75ea96c673 com/peterh/ liner failed; trying to fetch newer version com/gosexy/ gettext now at 98b7b91596d20b9 6909e6b60d57411 547dd9959c com/peterh/ liner now at 1bb0d1c1a25ed39 3d8feb09bab039b 2b1b1fbced com/p/go. crypto failed; trying to fetch newer version ea6e6b7f87f7175 734b1faab8 com/blakesmith/ ar failed; trying to fetch newer version com/p/go. crypto now at 69e2a90ed92d038 12364aeb947b706 8dc42e561e com/coreos/ go-systemd failed; trying to fetch newer version com/blakesmith/ ar now at c9a977dd0cc1392 b023382c7bfa5a2 2af8d3b730 com/gorilla/ context failed; trying to fetch newer version com/coreos/ go-systemd now at f743bc15d6bddd2 3662280b4ad20f7 c874cdd5ad com/jessevdk/ go-flags failed; trying to fetch newer version com/gorilla/ context now at 1c83b3eabd45b6d 76072b66b746c20 815fb2872d com/jessevdk/ go-flags now at 1acbbaff2f347c4 12a0c7884873bd7 2cc9c1f5b4 93457e8811b0cf2 6b773de469 6fb6c4e0d370a05 f24a0bf213 YRgRWPKpsg/ src/launchpad. net/snappy net/snappy/ cmd/snapd [no test files] net/snappy/ cmd/snappy 0.051s coverage: 21.2% of statements net/snappy/ coreconfig 0.352s coverage: 91.7% of statements net/snappy/ daemon 0.172s coverage: 69.8% of statements net/snappy/ dirs [no test files] net/snappy/ helpers 0.371s coverage: 79.2% of statements net/snappy/ i18n 0.013s coverage: 33.3% of statements net/snappy/ i18n/xgettext- go 0.023s coverage: 92.6% of statements net/snappy/ logger 0.008s coverage: 93.5% of statements net/snappy/ oauth 0.005s coverage: 100.0% of statements net/snappy/ partition 0.464s coverage: 74.7% of statements net/snappy/ pkg 0.004s coverage: 100.0% of statements net/snappy/ pkg/clickdeb 0.309s coverage: 74.4% of statements net/snappy/ pkg/lightweight 0.088s coverage: 93.5% of statements net/snappy/ pkg/remote [no test files] net/snappy/ pkg/removed 0.010s coverage: 94.4% of statements net/snappy/ pkg/snapfs 0.098s coverage: 70.0% of statements net/snappy/ policy 0.124s coverage: 94.3% of statements net/snappy/ priv 0.209s coverage: 91.1% of statements net/snappy/ progress 0.027s coverage: 50.0% of statements net/snappy/ provisioning 0.011s coverage: 96.4% of statements net/snappy/ release 0.007s coverage: 95.0% of statements info/hello- app.origin. manifest
Checking formatting
Installing godeps
Install golint
Obtaining dependencies
update github.
update github.
github.
update github.
github.
update github.
github.
update gopkg.in/check.v1 failed; trying to fetch newer version
github.
update github.
gopkg.in/check.v1 now at 64131543e7896d5
update github.
github.
update gopkg.in/tomb.v2 failed; trying to fetch newer version
github.
update code.google.
gopkg.in/tomb.v2 now at 14b3d72120e8d10
update github.
code.google.
update github.
github.
update github.
github.
update github.
github.
update golang.org/x/crypto failed; trying to fetch newer version
github.
update gopkg.in/yaml.v2 failed; trying to fetch newer version
golang.org/x/crypto now at 60052bd85f2d912
gopkg.in/yaml.v2 now at 49c95bdc2184325
Building
Running tests from /tmp/tmp.
? launchpad.
=== RUN Test
OK: 12 passed
--- PASS: Test (0.04 seconds)
PASS
coverage: 21.2% of statements
ok launchpad.
=== RUN Test
OK: 53 passed
--- PASS: Test (0.35 seconds)
PASS
coverage: 91.7% of statements
ok launchpad.
=== RUN Test
OK: 39 passed
--- PASS: Test (0.16 seconds)
PASS
coverage: 69.8% of statements
ok launchpad.
? launchpad.
=== RUN Test
OK: 64 passed
--- PASS: Test (0.36 seconds)
PASS
coverage: 79.2% of statements
ok launchpad.
=== RUN Test
OK: 0 passed, 2 skipped
--- PASS: Test (0.01 seconds)
PASS
coverage: 33.3% of statements
ok launchpad.
=== RUN Test
OK: 16 passed
--- PASS: Test (0.01 seconds)
PASS
coverage: 92.6% of statements
ok launchpad.
=== RUN Test
OK: 6 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 93.5% of statements
ok launchpad.
=== RUN Test
OK: 4 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 100.0% of statements
ok launchpad.
=== RUN Test
OK: 42 passed
--- PASS: Test (0.46 seconds)
PASS
coverage: 74.7% of statements
ok launchpad.
=== RUN Test
OK: 3 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 100.0% of statements
ok launchpad.
=== RUN Test
OK: 18 passed
--- PASS: Test (0.30 seconds)
PASS
coverage: 74.4% of statements
ok launchpad.
=== RUN Test
OK: 20 passed
--- PASS: Test (0.07 seconds)
=== RUN: ExamplePartBag
--- PASS: ExamplePartBag (8.427771ms)
PASS
coverage: 93.5% of statements
ok launchpad.
? launchpad.
=== RUN Test
OK: 3 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 94.4% of statements
ok launchpad.
=== RUN Test
OK: 10 passed
--- PASS: Test (0.08 seconds)
PASS
coverage: 70.0% of statements
ok launchpad.
=== RUN Test
OK: 12 passed
--- PASS: Test (0.11 seconds)
PASS
coverage: 94.3% of statements
ok launchpad.
=== RUN Test
OK: 5 passed
--- PASS: Test (0.20 seconds)
PASS
coverage: 91.1% of statements
ok launchpad.
=== RUN Test
OK: 4 passed
--- PASS: Test (0.01 seconds)
PASS
coverage: 50.0% of statements
ok launchpad.
=== RUN Test
OK: 9 passed
--- PASS: Test (0.01 seconds)
PASS
coverage: 96.4% of statements
ok launchpad.
=== RUN Test
OK: 6 passed
--- PASS: Test (0.00 seconds)
PASS
coverage: 95.0% of statements
ok launchpad.
=== RUN Test
bin/foo
meta/package.yaml
.click/
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- TestWriteCompat ManifestJSONNoF ollow
FAIL: click_test.go:1661: SnapTestSuite.
click_test.go:1674: helpers. FileExists( symlinkTarget) , Equals, false)
c.Check(
... obtained bool = true
... expected bool = false
OOPS: 305 passed, 1 FAILED net/snappy/ snappy 11.485s net/snappy/ systemd 0.532s coverage: 74.0% of statements
--- FAIL: Test (11.47 seconds)
FAIL
FAIL launchpad.
=== RUN Test
OK: 20 passed
--- PASS: Test (0.52 seconds)
PASS
coverage: 74.0% of statements
ok launchpad.
Crushing failure and despair.
# we always run in a fresh dir in tarmac
export GOPATH=$(mktemp -d)
trap 'rm -rf "$GOPATH"' EXIT
# this is a hack, but not sure tarmac is golang friendly src/launchpad. net/snappy src/launchpad. net/snappy/ src/launchpad. net/snappy
mkdir -p $GOPATH/
cp -a . $GOPATH/
cd $GOPATH/
sh -v ./run-checks
#!/bin/sh
set -eu
if which goctest >/dev/null; then "goctest"
goctest=
else
goctest="go test"
fi
QUICK=""
if [ "${1:-}" = "--quick" ]; then
QUICK=yes
fi
endmsg() {
p="success. txt"
p="failure. txt"
if [ $? -eq 0 ]; then
m="All good, what could possibly go wrong."
else
m="Crushing failure and despair."
fi
echo
if [ -t 1 -a -z "$QUICK" ]; then
cat "data/$p"
else
echo "$m"
fi
}
trap endmsg EXIT
echo Checking docs
./mdlint.py docs/*.md
echo Checking formatting
fmt=$(gofmt -l .)
if [ -n "$fmt" ]; then
echo "Formatting wrong in following files"
echo "$fmt"
exit 1
fi
if [ -z "$QUICK" ]; then net/godeps $GOPATH/ bin
echo Installing godeps
go get launchpad.
export PATH=$PATH:
echo Install golint com/golang/ lint/golint $GOPATH/ bin
go get github.
export PATH=$PATH:
echo Obtaining dependencies
godeps -u dependencies.tsv
echo Building net/snappy/ ...
go build -v launchpad.
# tests com/coreos/ go-systemd/ activation com/gorilla/ context com/gorilla/ mux net/snappy/ dirs net/snappy/ logger net/snappy/ helpers net/snappy/ pkg net/snappy/ pkg/remote com/cheggaaa/ pb net/snappy/ progress com/mvo5/ goconfigparser net/snappy/ coreconfig com/gosexy/ gettext net/snappy/ oauth com/mvo5/ uboot-go/ uenv net/snappy/ partition net/snappy/ i18n com/blakesmith/ ar net/snappy/ pkg/clickdeb net/snappy/ pkg/snapfs net/snappy/ policy net/snappy/ provisioning net/snappy/ release net/snappy/ systemd com/p/go. crypto/ ssh/terminal com/jessevdk/ go-flags net/snappy/ snappy com/peterh/ liner net/snappy/ priv net/snappy/ i18n/xgettext- go net/snappy/ pkg/removed net/snappy/ pkg/lightweight net/snappy/ daemon net/snappy/ cmd/snapd net/snappy/ cmd/snappy
echo Running tests from $(pwd)
$goctest -v -cover ./...
fi
github.
github.
gopkg.in/tomb.v2
github.
launchpad.
launchpad.
launchpad.
launchpad.
gopkg.in/yaml.v2
launchpad.
github.
launchpad.
github.
launchpad.
github.
launchpad.
github.
launchpad.
launchpad.
github.
launchpad.
launchpad.
launchpad.
launchpad.
launchpad.
launchpad.
code.google.
github.
launchpad.
github.
launchpad.
launchpad.
launchpad.
launchpad.
launchpad.
launchpad.
launchpad.