diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2018-03-22 16:14:11 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2018-04-03 08:32:46 +0900 |
commit | 9f93acce2c7e4a7e878179acf2e6e64257767b9c (patch) | |
tree | 6f97d1dd6fa0fe6b1714ac0d04cf736c4f1f8752 /.travis.yml | |
parent | b05e13b4951858524ce81a532c0fa8e2a42b88ba (diff) |
bgp_race_test: Unit test to detect data races
This patch adds UT file to detect data races when serializing BGP UPDATE
messages.
Example of Usage:
$ go test -race github.com/osrg/gobgp/packet/bgp -run ^Test_RaceCondition$
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 48b6f446..808c1143 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ _unittest: &_unittest <<: *_dep_ensure script: - go test $(go list ./... | grep -v '/vendor/') + - if [ "$(go env GOARCH)" = "amd64" ]; then go test -race github.com/osrg/gobgp/packet/bgp -run ^Test_RaceCondition$; else echo 'skip'; fi - go build -o ./gobgp/gobgp ./gobgp/ - go build -o ./gobgpd/gobgpd ./gobgpd/ |