From abf24a22305a8c02b4aadad65f76525eabb07d3b Mon Sep 17 00:00:00 2001 From: gadotroee <55343099+gadotroee@users.noreply.github.com> Date: Wed, 9 Feb 2022 14:26:57 +0200 Subject: [PATCH] Add help messages of make command and fix gsutil in tests (#783) --- Makefile | 14 +++++++------- cli/Makefile | 2 +- tap/extensions/http/Makefile | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 835d68636..7b6ef392a 100644 --- a/Makefile +++ b/Makefile @@ -80,10 +80,10 @@ clean-agent: ## Clean agent. clean-cli: ## Clean CLI. @(cd cli; make clean ; echo "CLI cleanup done" ) -clean-docker: +clean-docker: ## Run clen docker @(echo "DOCKER cleanup - NOT IMPLEMENTED YET " ) -test-lint: +test-lint: ## Run lint on all modules cd agent && golangci-lint run cd shared && golangci-lint run cd tap && golangci-lint run @@ -92,17 +92,17 @@ test-lint: cd tap/api && golangci-lint run cd tap/extensions/ && for D in */; do cd $$D && golangci-lint run && cd ..; done -test-cli: +test-cli: ## Run cli tests @echo "running cli tests"; cd cli && $(MAKE) test -test-agent: +test-agent: ## Run agent tests @echo "running agent tests"; cd agent && $(MAKE) test -test-shared: +test-shared: ## Run shared tests @echo "running shared tests"; cd shared && $(MAKE) test -test-extensions: +test-extensions: ## Run extensions tests @echo "running http tests"; cd tap/extensions/http && $(MAKE) test -acceptance-test: +acceptance-test: ## Run acceptance tests @echo "running acceptance tests"; cd acceptanceTests && $(MAKE) test diff --git a/cli/Makefile b/cli/Makefile index e237e805e..920b8c72e 100644 --- a/cli/Makefile +++ b/cli/Makefile @@ -14,7 +14,7 @@ help: ## This help. install: go install mizu.go -build-debug: +build-debug: ## Build mizu CLI for debug export GCLFAGS='-gcflags="all=-N -l"' ${MAKE} build diff --git a/tap/extensions/http/Makefile b/tap/extensions/http/Makefile index 2ad21ae65..529cc27ef 100644 --- a/tap/extensions/http/Makefile +++ b/tap/extensions/http/Makefile @@ -9,8 +9,8 @@ test-update: test-pull-bin test-pull-bin: @mkdir -p bin - @[ "${skipbin}" ] && echo "Skipping downloading BINs" || gsutil -m cp gs://static.up9.io/mizu/test-pcap/bin/http/\*.bin bin + @[ "${skipbin}" ] && echo "Skipping downloading BINs" || gsutil -o 'GSUtil:parallel_process_count=5' -o 'GSUtil:parallel_thread_count=5' -m cp gs://static.up9.io/mizu/test-pcap/bin/http/\*.bin bin test-pull-expect: @mkdir -p expect - @[ "${skipexpect}" ] && echo "Skipping downloading expected JSONs" || gsutil -m cp -r gs://static.up9.io/mizu/test-pcap/expect/http/\* expect + @[ "${skipexpect}" ] && echo "Skipping downloading expected JSONs" || gsutil -o 'GSUtil:parallel_process_count=5' -o 'GSUtil:parallel_thread_count=5' -m cp -r gs://static.up9.io/mizu/test-pcap/expect/http/\* expect