deploy: build
.PHONY: test
-test: unit integration
-
-.PHONY: unit
-unit:
- @go test -v -tags 'unit' ./...
-
-.PHONY: integration
-integration: clean
- @go build -tags 'integration' -buildmode=plugin -o ./mock_files/mock_plugins/mockplugin.so ./mock_files/mock_plugins/mockplugin.go
- @go build -tags 'integration' -buildmode=plugin -o ./mock_files/mock_plugins/mocknetworkplugin.so ./mock_files/mock_plugins/mocknetworkplugin.go
- @go test -v -tags 'integration' ./...
+test: clean
+ @go build -buildmode=plugin -o ./mock_files/mock_plugins/mockplugin.so ./mock_files/mock_plugins/mockplugin.go
+ @go build -buildmode=plugin -o ./mock_files/mock_plugins/mocknetworkplugin.so ./mock_files/mock_plugins/mocknetworkplugin.go
+ @go test -v ./...
format:
@go fmt ./...
.PHONY: cover
cover:
- @go test -tags 'unit' ./... -coverprofile=coverage.out
+ @go test ./... -coverprofile=coverage.out
@go tool cover -html=coverage.out -o coverage.html
-// +build unit
-
/*
Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
-// +build unit
-
/*
Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
-// +build integration
-
/*
Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
-// +build unit
-
/*
Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
-// +build unit
-
/*
* Copyright 2018 Intel Corporation, Inc
*
-// +build unit
-
/*
Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
-// +build unit integration
-
/*
Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
-// +build unit
-
/*
* Copyright 2018 Intel Corporation, Inc
*
-// +build unit
-
/*
* Copyright 2018 Intel Corporation, Inc
*
-// +build unit
-
/*
* Copyright 2018 Intel Corporation, Inc
*
-// +build unit
-
/*
* Copyright 2018 Intel Corporation, Inc
*
-// +build unit
-
/*
Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
-// +build unit
-
/*
Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
-// +build unit
-
/*
Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
-// +build integration
-
/*
Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
-// +build unit
-
/*
Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
-// +build unit
-
/*
Copyright 2018 Intel Corporation.
Licensed under the Apache License, Version 2.0 (the "License");