THRIFT-3102 could not make check for Go Library
Client: Go
Patch: Jens Geyer
This closes #451
diff --git a/lib/go/test/Makefile.am b/lib/go/test/Makefile.am
index 38a0968..aa3d95b 100644
--- a/lib/go/test/Makefile.am
+++ b/lib/go/test/Makefile.am
@@ -18,6 +18,7 @@
#
THRIFT = $(top_builddir)/compiler/cpp/thrift
+THRIFTARGS = -out gopath/src/ --gen go:thrift_import=thrift
THRIFTTEST = $(top_srcdir)/test/ThriftTest.thrift
# Thrift for GO has problems with complex map keys: THRIFT-2063
@@ -36,18 +37,18 @@
InitialismsTest.thrift
mkdir -p gopath/src
grep -v list.*map.*list.*map $(THRIFTTEST) | grep -v 'set<Insanity>' > ThriftTest.thrift
- $(THRIFT) -r IncludesTest.thrift
- $(THRIFT) BinaryKeyTest.thrift
- $(THRIFT) MultiplexedProtocolTest.thrift
- $(THRIFT) OnewayTest.thrift
- $(THRIFT) OptionalFieldsTest.thrift
- $(THRIFT) ServicesTest.thrift
- $(THRIFT) GoTagTest.thrift
- $(THRIFT) TypedefFieldTest.thrift
- $(THRIFT) RefAnnotationFieldsTest.thrift
- $(THRIFT) ErrorTest.thrift
- $(THRIFT) NamesTest.thrift
- $(THRIFT) InitialismsTest.thrift
+ $(THRIFT) $(THRIFTARGS) -r IncludesTest.thrift
+ $(THRIFT) $(THRIFTARGS) BinaryKeyTest.thrift
+ $(THRIFT) $(THRIFTARGS) MultiplexedProtocolTest.thrift
+ $(THRIFT) $(THRIFTARGS) OnewayTest.thrift
+ $(THRIFT) $(THRIFTARGS) OptionalFieldsTest.thrift
+ $(THRIFT) $(THRIFTARGS) ServicesTest.thrift
+ $(THRIFT) $(THRIFTARGS) GoTagTest.thrift
+ $(THRIFT) $(THRIFTARGS) TypedefFieldTest.thrift
+ $(THRIFT) $(THRIFTARGS) RefAnnotationFieldsTest.thrift
+ $(THRIFT) $(THRIFTARGS) ErrorTest.thrift
+ $(THRIFT) $(THRIFTARGS) NamesTest.thrift
+ $(THRIFT) $(THRIFTARGS) InitialismsTest.thrift
GOPATH=`pwd`/gopath $(GO) get code.google.com/p/gomock/gomock
ln -nfs ../../../thrift gopath/src/thrift
ln -nfs ../../tests gopath/src/tests