diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/jaegertracing/thrift/lib/go/test/Makefile.am | |
parent | Initial commit. (diff) | |
download | ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.tar.xz ceph-19fcec84d8d7d21e796c7624e521b60d28ee21ed.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/jaegertracing/thrift/lib/go/test/Makefile.am | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/src/jaegertracing/thrift/lib/go/test/Makefile.am b/src/jaegertracing/thrift/lib/go/test/Makefile.am new file mode 100644 index 000000000..244ddff1f --- /dev/null +++ b/src/jaegertracing/thrift/lib/go/test/Makefile.am @@ -0,0 +1,131 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +THRIFTARGS = -out gopath/src/ --gen go:thrift_import=thrift$(COMPILER_EXTRAFLAG) +THRIFTTEST = $(top_srcdir)/test/ThriftTest.thrift + +# Thrift for GO has problems with complex map keys: THRIFT-2063 +gopath: $(THRIFT) $(THRIFTTEST) \ + IncludesTest.thrift \ + NamespacedTest.thrift \ + MultiplexedProtocolTest.thrift \ + OnewayTest.thrift \ + OptionalFieldsTest.thrift \ + RequiredFieldTest.thrift \ + ServicesTest.thrift \ + GoTagTest.thrift \ + TypedefFieldTest.thrift \ + RefAnnotationFieldsTest.thrift \ + UnionDefaultValueTest.thrift \ + UnionBinaryTest.thrift \ + ErrorTest.thrift \ + NamesTest.thrift \ + InitialismsTest.thrift \ + DontExportRWTest.thrift \ + dontexportrwtest/compile_test.go \ + IgnoreInitialismsTest.thrift \ + ConflictNamespaceTestA.thrift \ + ConflictNamespaceTestB.thrift \ + ConflictNamespaceTestC.thrift \ + ConflictNamespaceTestD.thrift \ + ConflictNamespaceTestSuperThing.thrift \ + ConflictNamespaceServiceTest.thrift + mkdir -p gopath/src + grep -v list.*map.*list.*map $(THRIFTTEST) | grep -v 'set<Insanity>' > ThriftTest.thrift + $(THRIFT) $(THRIFTARGS) -r IncludesTest.thrift + $(THRIFT) $(THRIFTARGS) BinaryKeyTest.thrift + $(THRIFT) $(THRIFTARGS) MultiplexedProtocolTest.thrift + $(THRIFT) $(THRIFTARGS) OnewayTest.thrift + $(THRIFT) $(THRIFTARGS) OptionalFieldsTest.thrift + $(THRIFT) $(THRIFTARGS) RequiredFieldTest.thrift + $(THRIFT) $(THRIFTARGS) ServicesTest.thrift + $(THRIFT) $(THRIFTARGS) GoTagTest.thrift + $(THRIFT) $(THRIFTARGS) TypedefFieldTest.thrift + $(THRIFT) $(THRIFTARGS) RefAnnotationFieldsTest.thrift + $(THRIFT) $(THRIFTARGS) UnionDefaultValueTest.thrift + $(THRIFT) $(THRIFTARGS) UnionBinaryTest.thrift + $(THRIFT) $(THRIFTARGS) ErrorTest.thrift + $(THRIFT) $(THRIFTARGS) NamesTest.thrift + $(THRIFT) $(THRIFTARGS) InitialismsTest.thrift + $(THRIFT) $(THRIFTARGS),read_write_private DontExportRWTest.thrift + $(THRIFT) $(THRIFTARGS),ignore_initialisms IgnoreInitialismsTest.thrift + $(THRIFT) $(THRIFTARGS) ConflictNamespaceTestA.thrift + $(THRIFT) $(THRIFTARGS) ConflictNamespaceTestB.thrift + $(THRIFT) $(THRIFTARGS) ConflictNamespaceTestC.thrift + $(THRIFT) $(THRIFTARGS) ConflictNamespaceTestD.thrift + $(THRIFT) $(THRIFTARGS) ConflictNamespaceTestSuperThing.thrift + $(THRIFT) $(THRIFTARGS) ConflictNamespaceServiceTest.thrift + GOPATH=`pwd`/gopath $(GO) get github.com/golang/mock/gomock || true + sed -i 's/\"context\"/\"golang.org\/x\/net\/context\"/g' gopath/src/github.com/golang/mock/gomock/controller.go || true + GOPATH=`pwd`/gopath $(GO) get github.com/golang/mock/gomock + ln -nfs ../../../thrift gopath/src/thrift + ln -nfs ../../tests gopath/src/tests + cp -r ./dontexportrwtest gopath/src + touch gopath + +check: gopath + GOPATH=`pwd`/gopath $(GO) build \ + includestest \ + binarykeytest \ + servicestest \ + typedeffieldtest \ + refannotationfieldstest \ + errortest \ + namestest \ + initialismstest \ + dontexportrwtest \ + ignoreinitialismstest \ + unionbinarytest \ + conflictnamespacetestsuperthing \ + conflict/context/conflict_service-remote + GOPATH=`pwd`/gopath $(GO) test thrift tests dontexportrwtest + +clean-local: + $(RM) -r gopath ThriftTest.thrift gen-go + +client: stubs + $(GO) run TestClient.go + +EXTRA_DIST = \ + dontexportrwtest \ + tests \ + BinaryKeyTest.thrift \ + GoTagTest.thrift \ + IncludesTest.thrift \ + MultiplexedProtocolTest.thrift \ + NamespacedTest.thrift \ + OnewayTest.thrift \ + OptionalFieldsTest.thrift \ + RequiredFieldTest.thrift \ + RefAnnotationFieldsTest.thrift \ + UnionDefaultValueTest.thrift \ + UnionBinaryTest.thrift \ + ServicesTest.thrift \ + TypedefFieldTest.thrift \ + ErrorTest.thrift \ + NamesTest.thrift \ + InitialismsTest.thrift \ + DontExportRWTest.thrift \ + IgnoreInitialismsTest.thrift \ + ConflictNamespaceTestA.thrift \ + ConflictNamespaceTestB.thrift \ + ConflictNamespaceTestC.thrift \ + ConflictNamespaceTestD.thrift \ + ConflictNamespaceTestSuperThing.thrift + ConflictNamespaceServiceTest.thrift |