forked from cloudfoundry/bosh-agent
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract ginkgo tests to test-unit script
Signed-off-by: Adam Stegman <[email protected]>
- Loading branch information
1 parent
0be818a
commit 6761061
Showing
3 changed files
with
26 additions
and
10 deletions.
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
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
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,24 @@ | ||
#!/bin/bash | ||
|
||
result=0 | ||
|
||
bin=$(dirname $0) | ||
|
||
# Travis randomly kills go builds when using -race | ||
race=$([ "$TRAVIS" != "true" ] && echo "-race") | ||
|
||
echo -e "\n Installing ginkgo..." | ||
$bin/go install github.com/onsi/ginkgo/ginkgo | ||
let "result+=$?" | ||
|
||
echo -e "\n Testing packages..." | ||
$bin/env ginkgo -r $race $bin/.. | ||
let "result+=$?" | ||
|
||
if [ $result -eq 0 ]; then | ||
echo -e "\nSUITE SUCCESS" | ||
else | ||
echo -e "\nSUITE FAILURE" | ||
fi | ||
|
||
exit $result |