diff --git a/tap/extensions/http/Makefile b/tap/extensions/http/Makefile new file mode 100644 index 000000000..f2753b146 --- /dev/null +++ b/tap/extensions/http/Makefile @@ -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 diff --git a/tap/extensions/http/pull.sh b/tap/extensions/http/pull.sh new file mode 100755 index 000000000..58573cbac --- /dev/null +++ b/tap/extensions/http/pull.sh @@ -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 diff --git a/tap/extensions/http/test.sh b/tap/extensions/http/test.sh deleted file mode 100755 index 8564cb320..000000000 --- a/tap/extensions/http/test.sh +++ /dev/null @@ -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