Skip to content

Commit 9581b46

Browse files
committed
(cabal check) Add "Autogen include" test for bm
All in `autogen-includes` hs to be in either `includes` or `install-includes` (benchmark).
1 parent 5778d15 commit 9581b46

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# cabal check
2+
Warning: The package will not build sanely due to these errors:
3+
Warning: An include in 'autogen-includes' is not in 'includes'.
4+
Warning: Hackage would reject this package.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Test.Cabal.Prelude
2+
3+
-- All `autogen-includes` should appear in `install-includes` or
4+
-- `includes` (benchmark).
5+
main = cabalTest $
6+
fails $ cabal "check" []
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
cabal-version: 3.0
2+
name: pkg
3+
synopsis: synopsis
4+
description: description
5+
version: 0
6+
category: example
7+
maintainer: [email protected]
8+
license: GPL-3.0-or-later
9+
10+
benchmark benchmark
11+
main-is: Main.hs
12+
autogen-includes: AutoGenInc
13+
default-language: Haskell2010
14+
type: exitcode-stdio-1.0

0 commit comments

Comments
 (0)