diff options
author | Valery Piashchynski <[email protected]> | 2022-01-15 12:08:20 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2022-01-15 12:08:20 +0300 |
commit | 5254c8eb27311e2a8a53a4c90c3829cf1238c563 (patch) | |
tree | b51c9a4c1dd4c25adc511498ce0380a7078c5572 /Makefile | |
parent | 13609dd03dd0d2fa85b9fb850be787bf4e2ea67f (diff) |
Repository content update
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 33 |
1 files changed, 4 insertions, 29 deletions
@@ -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 |