"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test.sh" between
nsq-1.2.0.tar.gz and nsq-1.2.1.tar.gz

About: nsq is a realtime distributed and and decentralized messaging platform.

test.sh  (nsq-1.2.0):test.sh  (nsq-1.2.1)
#!/bin/bash #!/bin/sh
set -e set -e
GOMAXPROCS=1 go test -timeout 90s $(go list ./... | grep -v /vendor/) GOMAXPROCS=1 go test -timeout 90s ./...
GOMAXPROCS=4 go test -timeout 90s -race $(go list ./... | grep -v /vendor/)
if [ "$GOARCH" = "amd64" ] || [ "$GOARCH" = "arm64" ]; then
# go test: -race is only supported on linux/amd64, linux/ppc64le,
# linux/arm64, freebsd/amd64, netbsd/amd64, darwin/amd64 and windows/amd64
GOMAXPROCS=4 go test -timeout 90s -race ./...
fi
# no tests, but a build is something # no tests, but a build is something
for dir in apps/*/ bench/*/; do for dir in apps/*/ bench/*/; do
dir=${dir%/} dir=${dir%/}
if grep -q '^package main$' $dir/*.go 2>/dev/null; then if grep -q '^package main$' $dir/*.go 2>/dev/null; then
echo "building $dir" echo "building $dir"
go build -o $dir/$(basename $dir) ./$dir go build -o $dir/$(basename $dir) ./$dir
else else
echo "(skipped $dir)" echo "(skipped $dir)"
fi fi
done done
FMTDIFF="$(find apps internal nsqd nsqlookupd -name '*.go' -exec gofmt -d '{}' '
;')"
if [ -n "$FMTDIFF" ]; then
printf '%s\n' "$FMTDIFF"
exit 1
fi
 End of changes. 3 change blocks. 
3 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)