forked from facebookincubator/hsthrift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththrift-tests.cabal
296 lines (287 loc) · 8.46 KB
/
thrift-tests.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
cabal-version: 3.6
-- Copyright (c) Facebook, Inc. and its affiliates.
name: thrift-tests
version: 0.1.0.0
synopsis: Tests for Haskell Thrift
homepage: https://github.com/facebookincubator/hsthrift
bug-reports: https://github.com/facebookincubator/hsthrift/issues
license: BSD-3-Clause
license-file: LICENSE
author: Facebook, Inc.
maintainer: [email protected]
copyright: (c) Facebook, All Rights Reserved
category: Thrift
build-type: Simple
extra-source-files: cpp/*.h, cpp/*.cpp,
if/*.thrift,
if/gen-cpp2/*.h,
if/gen-cpp2/*.cpp,
if/gen-cpp2/*.tcc
description:
Tests for Haskell Thrift.
.
NOTE: for build instructions and documentation, see
https://github.com/facebookincubator/hsthrift
source-repository head
type: git
location: https://github.com/facebookincubator/hsthrift.git
common fb-haskell
default-language: Haskell2010
default-extensions:
BangPatterns
BinaryLiterals
DataKinds
DeriveDataTypeable
DeriveGeneric
EmptyCase
ExistentialQuantification
FlexibleContexts
FlexibleInstances
GADTs
GeneralizedNewtypeDeriving
LambdaCase
MultiParamTypeClasses
MultiWayIf
NoMonomorphismRestriction
OverloadedStrings
PatternSynonyms
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TupleSections
TypeFamilies
TypeSynonymInstances
NondecreasingIndentation
common fb-cpp
cxx-options: -std=c++17
if arch(x86_64)
cxx-options: -march=haswell
common test-common
hs-source-dirs: ., gen-hs2/
build-depends: aeson,
base,
bytestring,
containers,
data-default,
deepseq,
either,
fb-stubs,
ghc-prim,
hashable,
hspec,
hspec-contrib,
HUnit ^>= 1.6.1,
QuickCheck,
STMonadTrans,
text,
thrift-compiler,
thrift-lib,
thrift-lib:test-helpers,
transformers,
unordered-containers,
vector
ghc-options: -threaded
-- Enable tests that need fbthrift?
flag fbthrift
default: True
test-suite add-prefix
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: AddPrefixTest.hs
other-modules: HsPrefix.Types
ghc-options: -main-is AddPrefixTest
test-suite binary-protocol
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: BinaryProtocolTest.hs
other-modules: Foo.Types
ghc-options: -main-is BinaryProtocolTest
test-suite const-gen
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: ConstGenTest.hs
other-modules: Constants.Types
ghc-options: -main-is ConstGenTest
test-suite const-parser
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: ConstParserTest.hs
other-modules: Constants.Types
ghc-options: -main-is ConstParserTest
test-suite const
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: ConstTest.hs
other-modules: Constants.Types, Foo.Types
ghc-options: -main-is ConstTest
test-suite duplicate-names
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: DuplicateNamesTest.hs
other-modules: Duplicate.Types
ghc-options: -main-is DuplicateNamesTest
test-suite enum-const
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: EnumConstTest.hs
other-modules: EnumConst.Types
ghc-options: -main-is EnumConstTest
test-suite enum
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: EnumTest.hs
other-modules: Enum.Types
ghc-options: -main-is EnumTest
test-suite exception
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: ExceptionTest.hs
other-modules: Exception.Types
ghc-options: -main-is ExceptionTest
test-suite flags
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: FlagsTest.hs
other-modules: Flags.Types
ghc-options: -main-is FlagsTest
test-suite has-field
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: HasFieldTest.hs
other-modules: Hasfield.Types
ghc-options: -main-is HasFieldTest
test-suite includes
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: IncludesTest.hs
other-modules: A.Types, B.Types, C.Types, D.Types, E.Types
ghc-options: -main-is IncludesTest
test-suite input-checking
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: InputCheckingTest.hs
other-modules: Versions.Types
ghc-options: -main-is InputCheckingTest
test-suite instances
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: InstancesTest.hs
other-modules: Monoid.Types
ghc-options: -main-is InstancesTest
test-suite integration
import: fb-haskell, fb-cpp, test-common
if flag(fbthrift)
build-depends: cpp-channel
else
buildable: False
type: exitcode-stdio-1.0
main-is: IntegrationTest.hs
other-modules: HsTest.Types
include-dirs: .
cxx-sources: cpp/hs_test.cpp
if/gen-cpp2/hs_test_types.cpp
if/gen-cpp2/hs_test_data.cpp
ghc-options: -main-is IntegrationTest
test-suite interaction
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: InteractionsTest.hs
ghc-options: -main-is InteractionsTest
test-suite interface
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: InterfaceTest.hs
ghc-options: -main-is InterfaceTest
build-depends: haskell-src-exts, haskell-names
test-suite json
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: JSONTest.hs
other-modules: Foo.Types
ghc-options: -main-is JSONTest
test-suite lexer
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: LexerTest.hs
ghc-options: -main-is LexerTest
build-depends: text-show
test-suite map
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: MapTest.hs
other-modules: Map.Types
ghc-options: -main-is MapTest
test-suite message
import: fb-haskell, fb-cpp, test-common
if flag(fbthrift)
build-depends: cpp-channel
else
buildable: False
type: exitcode-stdio-1.0
main-is: MessageTest.hs
other-modules: HsTest.Types
include-dirs: .
cxx-sources: cpp/messages.cpp
if/gen-cpp2/hs_test_types.cpp
if/gen-cpp2/hs_test_data.cpp
ghc-options: -main-is MessageTest
test-suite messed-up-case
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: MessedUpCaseTest.hs
other-modules: MessedUpCase.Types
ghc-options: -main-is MessedUpCaseTest
test-suite namespace
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: NamespaceTest.hs
other-modules: Thrift.Test.Namespace.Types
Thrift.Test.Internal.NamespaceIncluded.Types
ghc-options: -main-is NamespaceTest
test-suite parens
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: ParensTest.hs
other-modules: Parens.Types
ghc-options: -main-is ParensTest
test-suite parser
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: ParserTest.hs
ghc-options: -main-is ParserTest
test-suite recursive
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: RecursiveTest.hs
ghc-options: -main-is RecursiveTest
test-suite required-symbols
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: RequiredSymbolsTest.hs
other-modules: Huge.Types
Huge.Service.Client
ghc-options: -main-is RequiredSymbolsTest
test-suite scoped-enums
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: ScopedEnumsTest.hs
other-modules: ScopedEnums.Types
ghc-options: -main-is ScopedEnumsTest
test-suite service
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: ServiceTest.hs
other-modules: Service.Types
ghc-options: -main-is ServiceTest
test-suite typechecker
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: TypecheckerTest.hs
ghc-options: -main-is TypecheckerTest
build-depends: text-show
test-suite typechecker-lenient
import: fb-haskell, test-common
type: exitcode-stdio-1.0
main-is: TypecheckerTestLenient.hs
ghc-options: -main-is TypecheckerTestLenient