From 68dcdae73c395995f12d9cce46754ae8c672c59f Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Fri, 6 Jul 2018 09:11:20 +0200 Subject: [PATCH] Add go test finder & runner --- test.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 test.sh diff --git a/test.sh b/test.sh new file mode 100755 index 000000000..7812accf7 --- /dev/null +++ b/test.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e +set -u + +PKG=github.com/crusttech/crust + +go test `cd ${GOPATH}/src/; find ${PKG} -type f -name '*_test.go' -and -not -path '*vendor*'|xargs -n1 dirname|uniq` \ No newline at end of file