@@ -933,6 +933,7 @@ look something like this:
933
933
default-language: Haskell2010
934
934
935
935
test-suite test-foo
936
+ type: exitcode-stdio-1.0
936
937
main-is: test-foo.hs
937
938
-- NOTE: no constraints on 'foo-internal' as same-package
938
939
-- dependencies implicitly refer to the same package instance
@@ -1206,14 +1207,14 @@ Test suites
1206
1207
The test suite may be described using the following fields, as well as
1207
1208
build information fields (see the section on `build information `_).
1208
1209
1209
- .. pkg-field :: type: interface
1210
+ .. pkg-field :: type: interface (required until ``cabal-version`` 3.8)
1210
1211
1211
1212
The interface type and version of the test suite. Cabal supports two
1212
- test suite interfaces, called ``exitcode-stdio-1.0 `` (default) and
1213
+ test suite interfaces, called ``exitcode-stdio-1.0 `` (default since `` cabal-version `` 3.8 ) and
1213
1214
``detailed-0.9 ``. Each of these types may require or disallow other
1214
1215
fields as described below.
1215
1216
1216
- Test suites using the ``exitcode-stdio-1.0 `` (default) interface are executables
1217
+ Test suites using the ``exitcode-stdio-1.0 `` (default since `` cabal-version `` 3.8 ) interface are executables
1217
1218
that indicate test failure with a non-zero exit code when run; they may
1218
1219
provide human-readable log information through the standard output and
1219
1220
error channels. The ``exitcode-stdio-1.0 `` type requires the ``main-is ``
@@ -1222,6 +1223,7 @@ field.
1222
1223
.. pkg-field :: main-is: filename
1223
1224
:synopsis: Module containing tests main function.
1224
1225
1226
+ :required: ``exitcode-stdio-1.0 ``
1225
1227
:disallowed: ``detailed-0.9 ``
1226
1228
1227
1229
The name of the ``.hs `` or ``.lhs `` file containing the ``Main ``
@@ -1243,6 +1245,7 @@ the :pkg-field:`test-module` field.
1243
1245
1244
1246
.. pkg-field :: test-module: identifier
1245
1247
1248
+ :required: ``detailed-0.9 ``
1246
1249
:disallowed: ``exitcode-stdio-1.0 ``
1247
1250
1248
1251
The module exporting the ``tests `` symbol.
@@ -1263,6 +1266,7 @@ demonstrate the use of the ``exitcode-stdio-1.0`` interface.
1263
1266
Build-Type: Simple
1264
1267
1265
1268
Test-Suite test-foo
1269
+ type: exitcode-stdio-1.0
1266
1270
main-is: test-foo.hs
1267
1271
build-depends: base >= 4 && < 5
1268
1272
default-language: Haskell2010
@@ -1297,6 +1301,7 @@ be provided by the library that provides the testing facility.
1297
1301
Build-Type: Simple
1298
1302
1299
1303
Test-Suite test-bar
1304
+ type: detailed-0.9
1300
1305
test-module: Bar
1301
1306
build-depends: base >= 4 && < 5, Cabal >= 1.9.2 && < 2
1302
1307
default-language: Haskell2010
@@ -1359,6 +1364,16 @@ Benchmarks
1359
1364
The benchmark may be described using the following fields, as well as
1360
1365
build information fields (see the section on `build information `_).
1361
1366
1367
+ .. pkg-field :: type: interface (required until ``cabal-version`` 3.8)
1368
+
1369
+ The interface type and version of the benchmark. At the moment Cabal
1370
+ only support one benchmark interface, called ``exitcode-stdio-1.0 ``.
1371
+
1372
+ Benchmarks using the ``exitcode-stdio-1.0 `` (default since ``cabal-version `` 3.8) interface are executables
1373
+ that indicate failure to run the benchmark with a non-zero exit code
1374
+ when run; they may provide human-readable information through the
1375
+ standard output and error channels.
1376
+
1362
1377
.. pkg-field :: main-is: filename
1363
1378
1364
1379
The name of the ``.hs `` or ``.lhs `` file containing the ``Main ``
@@ -1383,6 +1398,7 @@ Example:
1383
1398
Build-Type: Simple
1384
1399
1385
1400
Benchmark bench-foo
1401
+ type: exitcode-stdio-1.0
1386
1402
main-is: bench-foo.hs
1387
1403
build-depends: base >= 4 && < 5, time >= 1.1 && < 1.7
1388
1404
default-language: Haskell2010
@@ -2717,6 +2733,7 @@ Starting with Cabal-2.2 it's possible to use common build info stanzas.
2717
2733
2718
2734
test-suite tests
2719
2735
import: deps, test-deps
2736
+ type: exitcode-stdio-1.0
2720
2737
main-is: Tests.hs
2721
2738
build-depends: foo
2722
2739
default-language: Haskell2010
0 commit comments