summaryrefslogtreecommitdiffhomepage
path: root/.travis/tests.sh
diff options
context:
space:
mode:
authorinsomniac <insomniacslk@users.noreply.github.com>2018-11-06 17:21:32 +0000
committerGitHub <noreply@github.com>2018-11-06 17:21:32 +0000
commitc572359d4d841c1b9d3eadd06c2b05e6085897b2 (patch)
tree2a94b057dc6bdd6b10da4f8b5bb631cd0fd3e71b /.travis/tests.sh
parentdf1628dc937bba7f0c742bb4c48d5b9e96852436 (diff)
[WIP] Added DHCPv4 server (#178)
* Added DHCPv4 server * Added more modifiers * Fixed some bugs
Diffstat (limited to '.travis/tests.sh')
-rwxr-xr-x.travis/tests.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/.travis/tests.sh b/.travis/tests.sh
index 5310c0c..c58878d 100755
--- a/.travis/tests.sh
+++ b/.travis/tests.sh
@@ -12,6 +12,15 @@ for d in $(go list ./... | grep -v vendor); do
cat profile.out >> coverage.txt
rm profile.out
fi
+ # integration tests
+ go test -c -tags=integration -race -coverprofile=profile.out -covermode=atomic $d
+ testbin="./$(basename $d).test"
+ # only run it if it was built - i.e. if there are integ tests
+ test -x "${testbin}" && sudo "./${testbin}"
+ if [ -f profile.out ]; then
+ cat profile.out >> coverage.txt
+ rm profile.out
+ fi
done
# check that we are not breaking some projects that depend on us. Remove this after moving to