Add a Makefile

This commit is contained in:
M. Mert Yildiran
2022-02-07 23:38:07 +03:00
parent d91d73a485
commit 5299b20a8f
3 changed files with 11 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
test: test-pull
MIZU_TEST=1 go test *.go -covermode=atomic -coverprofile=coverage.out
test-update: test-pull
MIZU_TEST=1 TEST_UPDATE=1 go test *.go -v -covermode=atomic -coverprofile=coverage.out
test-pull:
./pull.sh

3
tap/extensions/http/pull.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
[ "$(ls -A --ignore='.??*' bin)" ] && echo "Skipping downloading BINs" || gsutil -m cp gs://static.up9.io/mizu/test-pcap/bin/http/\*.bin bin

View File

@@ -1,7 +0,0 @@
#!/bin/bash
[ "$(ls -A --ignore='.??*' bin)" ] && echo "Skipping downloading BINs" || gsutil -m cp gs://static.up9.io/mizu/test-pcap/bin/http/\*.bin bin
MIZU_TEST=1 go test *.go -v -covermode=atomic -coverprofile=coverage.out
MIZU_TEST=1 TEST_UPDATE=1 go test *.go -v -covermode=atomic -coverprofile=coverage.out