]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/thrift/lib/go/test/Makefile.am
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / lib / go / test / Makefile.am
CommitLineData
f67539c2
TL
1#
2# Licensed to the Apache Software Foundation (ASF) under one
3# or more contributor license agreements. See the NOTICE file
4# distributed with this work for additional information
5# regarding copyright ownership. The ASF licenses this file
6# to you under the Apache License, Version 2.0 (the
7# "License"); you may not use this file except in compliance
8# with the License. You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing,
13# software distributed under the License is distributed on an
14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15# KIND, either express or implied. See the License for the
16# specific language governing permissions and limitations
17# under the License.
18#
19
20THRIFTARGS = -out gopath/src/ --gen go:thrift_import=thrift$(COMPILER_EXTRAFLAG)
21THRIFTTEST = $(top_srcdir)/test/ThriftTest.thrift
22
23# Thrift for GO has problems with complex map keys: THRIFT-2063
24gopath: $(THRIFT) $(THRIFTTEST) \
25 IncludesTest.thrift \
26 NamespacedTest.thrift \
27 MultiplexedProtocolTest.thrift \
28 OnewayTest.thrift \
29 OptionalFieldsTest.thrift \
30 RequiredFieldTest.thrift \
31 ServicesTest.thrift \
32 GoTagTest.thrift \
33 TypedefFieldTest.thrift \
34 RefAnnotationFieldsTest.thrift \
35 UnionDefaultValueTest.thrift \
36 UnionBinaryTest.thrift \
37 ErrorTest.thrift \
38 NamesTest.thrift \
39 InitialismsTest.thrift \
40 DontExportRWTest.thrift \
41 dontexportrwtest/compile_test.go \
42 IgnoreInitialismsTest.thrift \
43 ConflictNamespaceTestA.thrift \
44 ConflictNamespaceTestB.thrift \
45 ConflictNamespaceTestC.thrift \
46 ConflictNamespaceTestD.thrift \
47 ConflictNamespaceTestSuperThing.thrift \
48 ConflictNamespaceServiceTest.thrift
49 mkdir -p gopath/src
50 grep -v list.*map.*list.*map $(THRIFTTEST) | grep -v 'set<Insanity>' > ThriftTest.thrift
51 $(THRIFT) $(THRIFTARGS) -r IncludesTest.thrift
52 $(THRIFT) $(THRIFTARGS) BinaryKeyTest.thrift
53 $(THRIFT) $(THRIFTARGS) MultiplexedProtocolTest.thrift
54 $(THRIFT) $(THRIFTARGS) OnewayTest.thrift
55 $(THRIFT) $(THRIFTARGS) OptionalFieldsTest.thrift
56 $(THRIFT) $(THRIFTARGS) RequiredFieldTest.thrift
57 $(THRIFT) $(THRIFTARGS) ServicesTest.thrift
58 $(THRIFT) $(THRIFTARGS) GoTagTest.thrift
59 $(THRIFT) $(THRIFTARGS) TypedefFieldTest.thrift
60 $(THRIFT) $(THRIFTARGS) RefAnnotationFieldsTest.thrift
61 $(THRIFT) $(THRIFTARGS) UnionDefaultValueTest.thrift
62 $(THRIFT) $(THRIFTARGS) UnionBinaryTest.thrift
63 $(THRIFT) $(THRIFTARGS) ErrorTest.thrift
64 $(THRIFT) $(THRIFTARGS) NamesTest.thrift
65 $(THRIFT) $(THRIFTARGS) InitialismsTest.thrift
66 $(THRIFT) $(THRIFTARGS),read_write_private DontExportRWTest.thrift
67 $(THRIFT) $(THRIFTARGS),ignore_initialisms IgnoreInitialismsTest.thrift
68 $(THRIFT) $(THRIFTARGS) ConflictNamespaceTestA.thrift
69 $(THRIFT) $(THRIFTARGS) ConflictNamespaceTestB.thrift
70 $(THRIFT) $(THRIFTARGS) ConflictNamespaceTestC.thrift
71 $(THRIFT) $(THRIFTARGS) ConflictNamespaceTestD.thrift
72 $(THRIFT) $(THRIFTARGS) ConflictNamespaceTestSuperThing.thrift
73 $(THRIFT) $(THRIFTARGS) ConflictNamespaceServiceTest.thrift
74 GOPATH=`pwd`/gopath $(GO) get github.com/golang/mock/gomock || true
75 sed -i 's/\"context\"/\"golang.org\/x\/net\/context\"/g' gopath/src/github.com/golang/mock/gomock/controller.go || true
76 GOPATH=`pwd`/gopath $(GO) get github.com/golang/mock/gomock
77 ln -nfs ../../../thrift gopath/src/thrift
78 ln -nfs ../../tests gopath/src/tests
79 cp -r ./dontexportrwtest gopath/src
80 touch gopath
81
82check: gopath
83 GOPATH=`pwd`/gopath $(GO) build \
84 includestest \
85 binarykeytest \
86 servicestest \
87 typedeffieldtest \
88 refannotationfieldstest \
89 errortest \
90 namestest \
91 initialismstest \
92 dontexportrwtest \
93 ignoreinitialismstest \
94 unionbinarytest \
95 conflictnamespacetestsuperthing \
96 conflict/context/conflict_service-remote
97 GOPATH=`pwd`/gopath $(GO) test thrift tests dontexportrwtest
98
99clean-local:
100 $(RM) -r gopath ThriftTest.thrift gen-go
101
102client: stubs
103 $(GO) run TestClient.go
104
105EXTRA_DIST = \
106 dontexportrwtest \
107 tests \
108 BinaryKeyTest.thrift \
109 GoTagTest.thrift \
110 IncludesTest.thrift \
111 MultiplexedProtocolTest.thrift \
112 NamespacedTest.thrift \
113 OnewayTest.thrift \
114 OptionalFieldsTest.thrift \
115 RequiredFieldTest.thrift \
116 RefAnnotationFieldsTest.thrift \
117 UnionDefaultValueTest.thrift \
118 UnionBinaryTest.thrift \
119 ServicesTest.thrift \
120 TypedefFieldTest.thrift \
121 ErrorTest.thrift \
122 NamesTest.thrift \
123 InitialismsTest.thrift \
124 DontExportRWTest.thrift \
125 IgnoreInitialismsTest.thrift \
126 ConflictNamespaceTestA.thrift \
127 ConflictNamespaceTestB.thrift \
128 ConflictNamespaceTestC.thrift \
129 ConflictNamespaceTestD.thrift \
130 ConflictNamespaceTestSuperThing.thrift
131 ConflictNamespaceServiceTest.thrift