File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11OVS_VERSION ?= v3.5.0
22
3+ TESTS ?=
4+
35.PHONY : all
46all : lint build test integration-test coverage
57
@@ -14,19 +16,19 @@ prebuild: modelgen ovsdb/serverdb/_server.ovsschema example/vswitchd/ovs.ovssche
1416 @go generate -v ./...
1517
1618.PHONY : build
17- build : prebuild
19+ build : prebuild
1820 @echo " + $@ "
1921 @go build -v ./...
2022
2123.PHONY : test
2224test : prebuild
2325 @echo " + $@ "
24- @go test -race -coverprofile=unit.cov -test.short -timeout 30s -v ./...
26+ @go test -race -coverprofile=unit.cov -test.short -timeout 30s -v $( if $( TESTS ) ,-run $( TESTS ) ) ./...
2527
2628.PHONY : integration-test
2729integration-test :
2830 @echo " + $@ "
29- @go test -race -coverprofile=integration.cov -coverpkg=github.com/ovn-kubernetes/libovsdb/... -timeout 60s -v ./test/ovs
31+ @go test -race -coverprofile=integration.cov -coverpkg=github.com/ovn-kubernetes/libovsdb/... -timeout 60s -v $( if $( TESTS ) ,-run $( TESTS ) ) ./test/ovs
3032
3133.PHONY : coverage
3234coverage : test integration-test
You can’t perform that action at this time.
0 commit comments