From 9f93acce2c7e4a7e878179acf2e6e64257767b9c Mon Sep 17 00:00:00 2001 From: IWASE Yusuke Date: Thu, 22 Mar 2018 16:14:11 +0900 Subject: 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 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.travis.yml') 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/ -- cgit v1.2.3