Skip to content

Commit

Permalink
Improve and clean up integration tests, benchmark.
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Dec 19, 2014
1 parent b6cb7dd commit 2090530
Show file tree
Hide file tree
Showing 37 changed files with 696 additions and 1,863 deletions.
14 changes: 6 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ case "${1:-default}" in
;;

docker-init)
docker build -q -t syncthing/build:$DOCKERIMGV docker >/dev/null
docker build -q -t syncthing/build:$DOCKERIMGV docker
;;

docker-all)
Expand All @@ -122,17 +122,15 @@ case "${1:-default}" in

docker-test)
docker run --rm -h syncthing-builder -u $(id -u) -t \
-v $(pwd):/tmp/syncthing \
-v $(pwd):/go/src/github.com/syncthing/syncthing \
-w /go/src/github.com/syncthing/syncthing \
syncthing/build:$DOCKERIMGV \
sh -euxc 'mkdir -p /go/src/github.com/syncthing \
&& cd /go/src/github.com/syncthing \
&& cp -r /tmp/syncthing syncthing \
&& cd syncthing \
&& ./build.sh clean \
sh -euxc './build.sh clean \
&& go run build.go -race \
&& export GOPATH=$(pwd)/Godeps/_workspace:$GOPATH \
&& cd test \
&& go test -tags integration -v -timeout 60m -short'
&& go test -tags integration -v -timeout 60m -short \
&& git clean -fxd .'
;;

*)
Expand Down
7 changes: 0 additions & 7 deletions test/all.sh

This file was deleted.

2 changes: 1 addition & 1 deletion test/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

// +build integration

package integration_test
package integration

import (
"os"
Expand Down
23 changes: 0 additions & 23 deletions test/f1/cert.pem

This file was deleted.

32 changes: 0 additions & 32 deletions test/f1/config.xml

This file was deleted.

23 changes: 0 additions & 23 deletions test/f1/https-cert.pem

This file was deleted.

39 changes: 0 additions & 39 deletions test/f1/https-key.pem

This file was deleted.

39 changes: 0 additions & 39 deletions test/f1/key.pem

This file was deleted.

23 changes: 0 additions & 23 deletions test/f2/cert.pem

This file was deleted.

34 changes: 0 additions & 34 deletions test/f2/config.xml

This file was deleted.

23 changes: 0 additions & 23 deletions test/f2/https-cert.pem

This file was deleted.

39 changes: 0 additions & 39 deletions test/f2/https-key.pem

This file was deleted.

39 changes: 0 additions & 39 deletions test/f2/key.pem

This file was deleted.

Loading

0 comments on commit 2090530

Please sign in to comment.