summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 4 insertions, 29 deletions
diff --git a/Makefile b/Makefile
index 67199bb0..ef77b549 100644
--- a/Makefile
+++ b/Makefile
@@ -1,29 +1,4 @@
-#!/usr/bin/make
-# Makefile readme (ru): <http://linux.yaroslavl.ru/docs/prog/gnu_make_3-79_russian_manual.html>
-# Makefile readme (en): <https://www.gnu.org/software/make/manual/html_node/index.html#SEC_Contents>
-
-SHELL = /bin/sh
-
-test_coverage:
- rm -rf coverage-ci
- mkdir ./coverage-ci
- go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/pipe.out -covermode=atomic ./ipc/pipe
- go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/socket.out -covermode=atomic ./ipc/socket
- go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/pool.out -covermode=atomic ./pool
- go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/worker.out -covermode=atomic ./worker
- go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/bst.out -covermode=atomic ./bst
- go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/pq.out -covermode=atomic ./priority_queue
- go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/worker_stack.out -covermode=atomic ./worker_watcher
- go test -v -race -cover -tags=debug -coverpkg=./... -coverprofile=./coverage-ci/events.out -covermode=atomic ./events
- echo 'mode: atomic' > ./coverage-ci/summary.txt
- tail -q -n +2 ./coverage-ci/*.out >> ./coverage-ci/summary.txt
-
-test: ## Run application tests
- go test -v -race -tags=debug ./ipc/pipe
- go test -v -race -tags=debug ./ipc/socket
- go test -v -race -tags=debug ./pool
- go test -v -race -tags=debug ./worker
- go test -v -race -tags=debug ./worker_watcher
- go test -v -race -tags=debug ./bst
- go test -v -race -tags=debug ./priority_queue
- go test -v -race -tags=debug ./events
+test:
+ go test -v -race ./...
+build:
+ CGO_ENABLED=0 go build -trimpath -ldflags "-s" -o rr qcmd/rr/main.go