Add help messages of make command and fix gsutil in tests (#783)

This commit is contained in:
gadotroee 2022-02-09 14:26:57 +02:00 committed by GitHub
parent db427d91cc
commit abf24a2230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View File

@ -80,10 +80,10 @@ clean-agent: ## Clean agent.
clean-cli: ## Clean CLI. clean-cli: ## Clean CLI.
@(cd cli; make clean ; echo "CLI cleanup done" ) @(cd cli; make clean ; echo "CLI cleanup done" )
clean-docker: clean-docker: ## Run clen docker
@(echo "DOCKER cleanup - NOT IMPLEMENTED YET " ) @(echo "DOCKER cleanup - NOT IMPLEMENTED YET " )
test-lint: test-lint: ## Run lint on all modules
cd agent && golangci-lint run cd agent && golangci-lint run
cd shared && golangci-lint run cd shared && golangci-lint run
cd tap && golangci-lint run cd tap && golangci-lint run
@ -92,17 +92,17 @@ test-lint:
cd tap/api && golangci-lint run cd tap/api && golangci-lint run
cd tap/extensions/ && for D in */; do cd $$D && golangci-lint run && cd ..; done 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 @echo "running cli tests"; cd cli && $(MAKE) test
test-agent: test-agent: ## Run agent tests
@echo "running agent tests"; cd agent && $(MAKE) test @echo "running agent tests"; cd agent && $(MAKE) test
test-shared: test-shared: ## Run shared tests
@echo "running shared tests"; cd shared && $(MAKE) test @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 @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 @echo "running acceptance tests"; cd acceptanceTests && $(MAKE) test

View File

@ -14,7 +14,7 @@ help: ## This help.
install: install:
go install mizu.go go install mizu.go
build-debug: build-debug: ## Build mizu CLI for debug
export GCLFAGS='-gcflags="all=-N -l"' export GCLFAGS='-gcflags="all=-N -l"'
${MAKE} build ${MAKE} build

View File

@ -9,8 +9,8 @@ test-update: test-pull-bin
test-pull-bin: test-pull-bin:
@mkdir -p 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: test-pull-expect:
@mkdir -p 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