@@ -926,7 +926,6 @@ look something like this:
926
926
default-language: Haskell2010
927
927
928
928
test-suite test-foo
929
- type: exitcode-stdio-1.0
930
929
main-is: test-foo.hs
931
930
-- NOTE: no constraints on 'foo-internal' as same-package
932
931
-- dependencies implicitly refer to the same package instance
@@ -1188,14 +1187,14 @@ Test suites
1188
1187
The test suite may be described using the following fields, as well as
1189
1188
build information fields (see the section on `build information `_).
1190
1189
1191
- .. pkg-field :: type: interface (required)
1190
+ .. pkg-field :: type: interface
1192
1191
1193
1192
The interface type and version of the test suite. Cabal supports two
1194
- test suite interfaces, called ``exitcode-stdio-1.0 `` and
1193
+ test suite interfaces, called ``exitcode-stdio-1.0 `` (default) and
1195
1194
``detailed-0.9 ``. Each of these types may require or disallow other
1196
1195
fields as described below.
1197
1196
1198
- Test suites using the ``exitcode-stdio-1.0 `` interface are executables
1197
+ Test suites using the ``exitcode-stdio-1.0 `` (default) interface are executables
1199
1198
that indicate test failure with a non-zero exit code when run; they may
1200
1199
provide human-readable log information through the standard output and
1201
1200
error channels. The ``exitcode-stdio-1.0 `` type requires the ``main-is ``
@@ -1204,7 +1203,6 @@ field.
1204
1203
.. pkg-field :: main-is: filename
1205
1204
:synopsis: Module containing tests main function.
1206
1205
1207
- :required: ``exitcode-stdio-1.0 ``
1208
1206
:disallowed: ``detailed-0.9 ``
1209
1207
1210
1208
The name of the ``.hs `` or ``.lhs `` file containing the ``Main ``
@@ -1226,7 +1224,6 @@ the :pkg-field:`test-module` field.
1226
1224
1227
1225
.. pkg-field :: test-module: identifier
1228
1226
1229
- :required: ``detailed-0.9 ``
1230
1227
:disallowed: ``exitcode-stdio-1.0 ``
1231
1228
1232
1229
The module exporting the ``tests `` symbol.
@@ -1247,7 +1244,6 @@ demonstrate the use of the ``exitcode-stdio-1.0`` interface.
1247
1244
Build-Type: Simple
1248
1245
1249
1246
Test-Suite test-foo
1250
- type: exitcode-stdio-1.0
1251
1247
main-is: test-foo.hs
1252
1248
build-depends: base >= 4 && < 5
1253
1249
default-language: Haskell2010
@@ -1282,7 +1278,6 @@ be provided by the library that provides the testing facility.
1282
1278
Build-Type: Simple
1283
1279
1284
1280
Test-Suite test-bar
1285
- type: detailed-0.9
1286
1281
test-module: Bar
1287
1282
build-depends: base >= 4 && < 5, Cabal >= 1.9.2 && < 2
1288
1283
default-language: Haskell2010
@@ -1345,20 +1340,8 @@ Benchmarks
1345
1340
The benchmark may be described using the following fields, as well as
1346
1341
build information fields (see the section on `build information `_).
1347
1342
1348
- .. pkg-field :: type: interface (required)
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 `` 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
-
1358
1343
.. pkg-field :: main-is: filename
1359
1344
1360
- :required: ``exitcode-stdio-1.0 ``
1361
-
1362
1345
The name of the ``.hs `` or ``.lhs `` file containing the ``Main ``
1363
1346
module. Note that it is the ``.hs `` filename that must be listed,
1364
1347
even if that file is generated using a preprocessor. The source file
@@ -1367,12 +1350,9 @@ standard output and error channels.
1367
1350
field of an executable section. Further, while the name of the file may
1368
1351
vary, the module itself must be named ``Main ``.
1369
1352
1370
- Example: Package using `` exitcode-stdio-1.0 `` interface
1353
+ Example:
1371
1354
"""""""""""""""""""""""""""""""""""""""""""""""""""""""
1372
1355
1373
- The example package description and executable source file below
1374
- demonstrate the use of the ``exitcode-stdio-1.0 `` interface.
1375
-
1376
1356
.. code-block :: cabal
1377
1357
:caption: foo.cabal
1378
1358
:name: foo-bench.cabal
@@ -1384,7 +1364,6 @@ demonstrate the use of the ``exitcode-stdio-1.0`` interface.
1384
1364
Build-Type: Simple
1385
1365
1386
1366
Benchmark bench-foo
1387
- type: exitcode-stdio-1.0
1388
1367
main-is: bench-foo.hs
1389
1368
build-depends: base >= 4 && < 5, time >= 1.1 && < 1.7
1390
1369
default-language: Haskell2010
@@ -2719,7 +2698,6 @@ Starting with Cabal-2.2 it's possible to use common build info stanzas.
2719
2698
2720
2699
test-suite tests
2721
2700
import: deps, test-deps
2722
- type: exitcode-stdio-1.0
2723
2701
main-is: Tests.hs
2724
2702
build-depends: foo
2725
2703
default-language: Haskell2010
0 commit comments