@@ -926,6 +926,7 @@ look something like this:
926
926
default-language: Haskell2010
927
927
928
928
test-suite test-foo
929
+ type: exitcode-stdio-1.0
929
930
main-is: test-foo.hs
930
931
-- NOTE: no constraints on 'foo-internal' as same-package
931
932
-- dependencies implicitly refer to the same package instance
@@ -1187,14 +1188,14 @@ Test suites
1187
1188
The test suite may be described using the following fields, as well as
1188
1189
build information fields (see the section on `build information `_).
1189
1190
1190
- .. pkg-field :: type: interface
1191
+ .. pkg-field :: type: interface (required until ``cabal-version`` 3.8)
1191
1192
1192
1193
The interface type and version of the test suite. Cabal supports two
1193
- test suite interfaces, called ``exitcode-stdio-1.0 `` (default) and
1194
+ test suite interfaces, called ``exitcode-stdio-1.0 `` (default since `` cabal-version `` 3.8 ) and
1194
1195
``detailed-0.9 ``. Each of these types may require or disallow other
1195
1196
fields as described below.
1196
1197
1197
- Test suites using the ``exitcode-stdio-1.0 `` (default) interface are executables
1198
+ Test suites using the ``exitcode-stdio-1.0 `` (default since `` cabal-version `` 3.8 ) interface are executables
1198
1199
that indicate test failure with a non-zero exit code when run; they may
1199
1200
provide human-readable log information through the standard output and
1200
1201
error channels. The ``exitcode-stdio-1.0 `` type requires the ``main-is ``
@@ -1203,6 +1204,7 @@ field.
1203
1204
.. pkg-field :: main-is: filename
1204
1205
:synopsis: Module containing tests main function.
1205
1206
1207
+ :required: ``exitcode-stdio-1.0 ``
1206
1208
:disallowed: ``detailed-0.9 ``
1207
1209
1208
1210
The name of the ``.hs `` or ``.lhs `` file containing the ``Main ``
@@ -1224,6 +1226,7 @@ the :pkg-field:`test-module` field.
1224
1226
1225
1227
.. pkg-field :: test-module: identifier
1226
1228
1229
+ :required: ``detailed-0.9 ``
1227
1230
:disallowed: ``exitcode-stdio-1.0 ``
1228
1231
1229
1232
The module exporting the ``tests `` symbol.
@@ -1244,6 +1247,7 @@ demonstrate the use of the ``exitcode-stdio-1.0`` interface.
1244
1247
Build-Type: Simple
1245
1248
1246
1249
Test-Suite test-foo
1250
+ type: exitcode-stdio-1.0
1247
1251
main-is: test-foo.hs
1248
1252
build-depends: base >= 4 && < 5
1249
1253
default-language: Haskell2010
@@ -1278,6 +1282,7 @@ be provided by the library that provides the testing facility.
1278
1282
Build-Type: Simple
1279
1283
1280
1284
Test-Suite test-bar
1285
+ type: detailed-0.9
1281
1286
test-module: Bar
1282
1287
build-depends: base >= 4 && < 5, Cabal >= 1.9.2 && < 2
1283
1288
default-language: Haskell2010
@@ -1340,6 +1345,16 @@ Benchmarks
1340
1345
The benchmark may be described using the following fields, as well as
1341
1346
build information fields (see the section on `build information `_).
1342
1347
1348
+ .. pkg-field :: type: interface (required until ``cabal-version`` 3.8)
1349
+
1350
+ The interface type and version of the benchmark. At the moment Cabal
1351
+ only support one benchmark interface, called ``exitcode-stdio-1.0 ``.
1352
+
1353
+ Benchmarks using the ``exitcode-stdio-1.0 `` (default since ``cabal-version `` 3.8) interface are executables
1354
+ that indicate failure to run the benchmark with a non-zero exit code
1355
+ when run; they may provide human-readable information through the
1356
+ standard output and error channels.
1357
+
1343
1358
.. pkg-field :: main-is: filename
1344
1359
1345
1360
The name of the ``.hs `` or ``.lhs `` file containing the ``Main ``
@@ -1364,6 +1379,7 @@ Example:
1364
1379
Build-Type: Simple
1365
1380
1366
1381
Benchmark bench-foo
1382
+ type: exitcode-stdio-1.0
1367
1383
main-is: bench-foo.hs
1368
1384
build-depends: base >= 4 && < 5, time >= 1.1 && < 1.7
1369
1385
default-language: Haskell2010
@@ -2698,6 +2714,7 @@ Starting with Cabal-2.2 it's possible to use common build info stanzas.
2698
2714
2699
2715
test-suite tests
2700
2716
import: deps, test-deps
2717
+ type: exitcode-stdio-1.0
2701
2718
main-is: Tests.hs
2702
2719
build-depends: foo
2703
2720
default-language: Haskell2010
0 commit comments