Skip to content

Commit 74cfe30

Browse files
authored
Add test data files to extra-source-files (#1605)
* Add test data to extra-source-files * Remove eval test files
1 parent 3ceed4d commit 74cfe30

File tree

4 files changed

+26
-13
lines changed

4 files changed

+26
-13
lines changed

ghcide/ghcide.cabal

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cabal-version: 2.2
1+
cabal-version: 2.4
22
build-type: Simple
33
category: Development
44
name: ghcide
@@ -15,13 +15,11 @@ homepage: https://github.com/haskell/haskell-language-server/tree/mast
1515
bug-reports: https://github.com/haskell/haskell-language-server/issues
1616
tested-with: GHC == 8.6.4 || == 8.6.5 || == 8.8.2 || == 8.8.3 || == 8.8.4 || == 8.10.2 || == 8.10.3 || == 8.10.4
1717
extra-source-files: include/ghc-api-version.h README.md CHANGELOG.md
18-
test/data/hover/*.hs
19-
test/data/multi/cabal.project
20-
test/data/multi/hie.yaml
21-
test/data/multi/a/a.cabal
22-
test/data/multi/a/*.hs
23-
test/data/multi/b/b.cabal
24-
test/data/multi/b/*.hs
18+
test/data/**/*.project
19+
test/data/**/*.cabal
20+
test/data/**/*.yaml
21+
test/data/**/*.hs
22+
test/data/**/*.hs-boot
2523

2624
source-repository head
2725
type: git

haskell-language-server.cabal

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cabal-version: 2.2
1+
cabal-version: 2.4
22
category: Development
33
name: haskell-language-server
44
version: 1.0.0.0
@@ -19,6 +19,15 @@ extra-source-files:
1919
README.md
2020
ChangeLog.md
2121
include/ghc-api-version.h
22+
test/testdata/**/*.project
23+
test/testdata/**/*.cabal
24+
test/testdata/**/*.yaml
25+
-- this one is not matched by the previous glob
26+
test/testdata/hlint/ignore/.hlint.yaml
27+
test/testdata/**/*.h
28+
test/testdata/**/*.hs
29+
test/testdata/**/*.expected
30+
test/testdata/**/*.error
2231

2332
flag pedantic
2433
description: Enable -Werror

plugins/hls-brittany-plugin/hls-brittany-plugin.cabal

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
cabal-version: 2.2
1+
cabal-version: 2.4
22
name: hls-brittany-plugin
33
version: 1.0.0.0
44
synopsis: Integration with the Brittany code formatter
5+
description: Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
56
license: Apache-2.0
67
license-file: LICENSE
78
author: The Haskell IDE Team
@@ -11,12 +12,13 @@ category: Development
1112
build-type: Simple
1213
extra-source-files:
1314
LICENSE
15+
test/testdata/**/*.hs
1416

1517
library
1618
exposed-modules: Ide.Plugin.Brittany
1719
hs-source-dirs: src
18-
build-depends: base
19-
, brittany >= 0.13.1.0
20+
build-depends: base >=4.12 && <5
21+
, brittany >= 0.13.1.0
2022
, filepath
2123
, ghc
2224
, ghc-boot-th

plugins/hls-tactics-plugin/hls-tactics-plugin.cabal

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ license-file: LICENSE
1414
build-type: Simple
1515
extra-source-files:
1616
README.md
17-
-- ChangeLog.md
17+
test/golden/*.cabal
18+
test/golden/*.yaml
19+
test/golden/*.hs
20+
test/golden/*.hs.expected
21+
1822

1923
flag pedantic
2024
description: Enable -Werror

0 commit comments

Comments
 (0)