forked from HuaweiTech/gorouter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dmitriy Kalinin and Pieter Noordhuis
committed
Jan 30, 2013
1 parent
9d642e4
commit e3f4040
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ language: common | |
|
||
script: | ||
- gem install nats | ||
- bin/go test router -gocheck.v=true | ||
- bin/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
function packages() { | ||
find src -name '*_test.go' | xargs -n1 dirname | sort | uniq | cut -d/ -f2- | ||
} | ||
|
||
echo --- Installing | ||
for p in $(packages) | ||
do | ||
echo $p | ||
bin/go test -i $p | ||
done | ||
|
||
echo --- Testing | ||
for p in $(packages) | ||
do | ||
echo $p | ||
|
||
if grep -q launchpad.net/gocheck src/$p/*.go | ||
then | ||
bin/go test $p -test.v=true -gocheck.v=true | ||
else | ||
bin/go test $p -test.v=true | ||
fi | ||
done |