Skip to content

Commit eb43ee0

Browse files
committed
Add test
1 parent e4fee32 commit eb43ee0

File tree

5 files changed

+23
-0
lines changed

5 files changed

+23
-0
lines changed

cabal-testsuite/PackageTests/Check/PackageFiles/MissingExpectedExtraDocFiles/ChangeLog.md

Whitespace-only changes.

cabal-testsuite/PackageTests/Check/PackageFiles/MissingExpectedExtraDocFiles/README

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# cabal check
2+
Warning: These warnings may cause trouble when distributing the package:
3+
Warning: Please consider including the file './README' in the extra-doc-files section of the .cabal file if it contains useful information for users of the package.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Test.Cabal.Prelude
2+
3+
import System.Directory (createDirectoryIfMissing)
4+
5+
-- Omitting README but not ChangeLog.md in extra-doc-files
6+
main = cabalTest $ do
7+
cabal "check" []
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
extra-doc-files: ChangeLog.md
10+
11+
library
12+
exposed-modules: Foo
13+
default-language: Haskell2010

0 commit comments

Comments
 (0)