diff --git a/ghcide/test/data/plugin/KnownNat.hs b/ghcide/test/data/plugin-knownnat/KnownNat.hs similarity index 100% rename from ghcide/test/data/plugin/KnownNat.hs rename to ghcide/test/data/plugin-knownnat/KnownNat.hs diff --git a/ghcide/test/data/plugin/cabal.project b/ghcide/test/data/plugin-knownnat/cabal.project similarity index 100% rename from ghcide/test/data/plugin/cabal.project rename to ghcide/test/data/plugin-knownnat/cabal.project diff --git a/ghcide/test/data/plugin-knownnat/plugin.cabal b/ghcide/test/data/plugin-knownnat/plugin.cabal new file mode 100644 index 0000000000..1439bf72a7 --- /dev/null +++ b/ghcide/test/data/plugin-knownnat/plugin.cabal @@ -0,0 +1,9 @@ +cabal-version: 1.18 +name: plugin +version: 1.0.0 +build-type: Simple + +library + build-depends: base, ghc-typelits-knownnat + exposed-modules: KnownNat + hs-source-dirs: . diff --git a/ghcide/test/data/plugin/RecordDot.hs b/ghcide/test/data/plugin-recorddot/RecordDot.hs similarity index 100% rename from ghcide/test/data/plugin/RecordDot.hs rename to ghcide/test/data/plugin-recorddot/RecordDot.hs diff --git a/ghcide/test/data/plugin-recorddot/cabal.project b/ghcide/test/data/plugin-recorddot/cabal.project new file mode 100644 index 0000000000..e6fdbadb43 --- /dev/null +++ b/ghcide/test/data/plugin-recorddot/cabal.project @@ -0,0 +1 @@ +packages: . diff --git a/ghcide/test/data/plugin-recorddot/plugin.cabal b/ghcide/test/data/plugin-recorddot/plugin.cabal new file mode 100644 index 0000000000..bd85313914 --- /dev/null +++ b/ghcide/test/data/plugin-recorddot/plugin.cabal @@ -0,0 +1,9 @@ +cabal-version: 1.18 +name: plugin +version: 1.0.0 +build-type: Simple + +library + build-depends: base, record-dot-preprocessor, record-hasfield + exposed-modules: RecordDot + hs-source-dirs: . diff --git a/ghcide/test/data/plugin/plugin.cabal b/ghcide/test/data/plugin/plugin.cabal deleted file mode 100644 index 11bd0e1513..0000000000 --- a/ghcide/test/data/plugin/plugin.cabal +++ /dev/null @@ -1,10 +0,0 @@ -cabal-version: 1.18 -name: plugin -version: 1.0.0 -build-type: Simple - -library - build-depends: base, ghc-typelits-knownnat, record-dot-preprocessor, - record-hasfield - exposed-modules: KnownNat, RecordDot - hs-source-dirs: . diff --git a/ghcide/test/exe/Main.hs b/ghcide/test/exe/Main.hs index 308bf534f6..e9fd1d89ca 100644 --- a/ghcide/test/exe/Main.hs +++ b/ghcide/test/exe/Main.hs @@ -3405,7 +3405,7 @@ checkFileCompiles fp diag = pluginSimpleTests :: TestTree pluginSimpleTests = ignoreInWindowsForGHC88And810 $ - testSessionWithExtraFiles "plugin" "simple plugin" $ \dir -> do + testSessionWithExtraFiles "plugin-knownnat" "simple plugin" $ \dir -> do _ <- openDoc (dir "KnownNat.hs") "haskell" liftIO $ writeFile (dir"hie.yaml") "cradle: {cabal: [{path: '.', component: 'lib:plugin'}]}" @@ -3419,7 +3419,7 @@ pluginSimpleTests = pluginParsedResultTests :: TestTree pluginParsedResultTests = ignoreInWindowsForGHC88And810 $ - testSessionWithExtraFiles "plugin" "parsedResultAction plugin" $ \dir -> do + testSessionWithExtraFiles "plugin-recorddot" "parsedResultAction plugin" $ \dir -> do _ <- openDoc (dir "RecordDot.hs") "haskell" expectNoMoreDiagnostics 2