THRIFT-2445 (code generation for go maps with binary keys) should be tested
Patch: Aleksey Pesternikov
diff --git a/lib/go/test/Makefile.am b/lib/go/test/Makefile.am
index 4e71cd0..cb6073c 100644
--- a/lib/go/test/Makefile.am
+++ b/lib/go/test/Makefile.am
@@ -17,25 +17,25 @@
# under the License.
#
-THRIFT = $(top_srcdir)/compiler/cpp/thrift
+THRIFT = $(top_srcdir)/compiler/cpp/thrift -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
-gopath: $(THRIFT) $(THRIFTTEST) IncludesTest.thrift NamespacedTest.thrift
+gopath: $(top_srcdir)/compiler/cpp/thrift $(THRIFTTEST) IncludesTest.thrift NamespacedTest.thrift
mkdir -p gopath/src
grep -v list.*map.*list.*map $(THRIFTTEST) > ThriftTest.thrift
- $(THRIFT) --gen go:thrift_import=thrift -r IncludesTest.thrift
- ln -nfs ../../gen-go/ThriftTest gopath/src/ThriftTest
- ln -nfs ../../gen-go/IncludesTest gopath/src/IncludesTest
- ln -nfs ../../gen-go/lib gopath/src/lib
+ $(THRIFT) -r IncludesTest.thrift
+ $(THRIFT) BinaryKeyTest.thrift
ln -nfs ../../../thrift gopath/src/thrift
+ ln -nfs ../../tests gopath/src/tests
touch gopath
check: gopath
- GOPATH=`pwd`/gopath $(GO) build IncludesTest
+ GOPATH=`pwd`/gopath $(GO) build IncludesTest BinaryKeyTest
+ GOPATH=`pwd`/gopath $(GO) test thrift tests
clean-local:
- $(RM) -r gen-go gopath ThriftTest.thrift
+ $(RM) -r gopath ThriftTest.thrift
client: stubs
$(GO) run TestClient.go