summaryrefslogtreecommitdiff
path: root/src/mongo/gotools/vendor/src/github.com/smartystreets/assertions/internal/Makefile
blob: 0894b82bd81d2f249c79e988f3214a17539dacff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# This Makefile pulls the latest oglematchers (with dependencies),
# rewrites the imports to match this location,
# and ensures that all the tests pass.

go: clean clone rewrite

clean:
	rm -rf ogle*
	rm -rf reqtrace
	rm -rf go-render

clone:
	git clone https://github.com/jacobsa/ogletest.git && rm -rf ogletest/.git
	git clone https://github.com/jacobsa/oglemock.git && rm -rf oglemock/.git
	git clone https://github.com/jacobsa/oglematchers.git && rm -rf oglematchers/.git
	git clone https://github.com/jacobsa/reqtrace.git && rm -rf reqtrace/.git
	git clone https://github.com/luci/go-render.git && rm -rf go-render/.git

rewrite:
	grep -rl --exclude Makefile 'github.com/jacobsa' . | xargs sed -i '' 's#github.com/jacobsa#github.com/smartystreets/assertions/internal#g'

test:
	go test github.com/smartystreets/assertions/...