Skip to content

Instantly share code, notes, and snippets.

@fukata
Last active December 24, 2015 06:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fukata/6760406 to your computer and use it in GitHub Desktop.
Save fukata/6760406 to your computer and use it in GitHub Desktop.
ALL go tests.
# see http://d.hatena.ne.jp/holidays-l/20110823/p1
define MAKETEST
for pkg in $$(for f in $$(find ./adstir -name *_test.go); do echo $${f%/*}; done |sort -u)
do
gom test $$pkg
done
endef
export MAKETEST
test:
@echo "$${MAKETEST}" > /tmp/$$$$ ; $(SHELL) /tmp/$$$$ ; rm -f /tmp/$$$$
# vim:set noexpandtab :
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment