From 541d219dbcf097c0c50b4ee0216f270c9c8c1342 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Tue, 22 Jan 2019 00:34:05 +0100 Subject: Add support and test coverage for mulit-pkg projects --- tests/multipkg/pkg-oot/Exe.hs | 1 + tests/multipkg/pkg-oot/Lib.hs | 2 ++ tests/multipkg/pkg-oot/pkg-oot.cabal | 24 ++++++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 tests/multipkg/pkg-oot/Exe.hs create mode 100644 tests/multipkg/pkg-oot/Lib.hs create mode 100644 tests/multipkg/pkg-oot/pkg-oot.cabal (limited to 'tests/multipkg/pkg-oot') diff --git a/tests/multipkg/pkg-oot/Exe.hs b/tests/multipkg/pkg-oot/Exe.hs new file mode 100644 index 0000000..d5e55cc --- /dev/null +++ b/tests/multipkg/pkg-oot/Exe.hs @@ -0,0 +1 @@ +main = putStrLn "Hello World!" diff --git a/tests/multipkg/pkg-oot/Lib.hs b/tests/multipkg/pkg-oot/Lib.hs new file mode 100644 index 0000000..b851fd6 --- /dev/null +++ b/tests/multipkg/pkg-oot/Lib.hs @@ -0,0 +1,2 @@ +module Lib where +lib = () diff --git a/tests/multipkg/pkg-oot/pkg-oot.cabal b/tests/multipkg/pkg-oot/pkg-oot.cabal new file mode 100644 index 0000000..8d61599 --- /dev/null +++ b/tests/multipkg/pkg-oot/pkg-oot.cabal @@ -0,0 +1,24 @@ +name: pkg-oot +version: 0 +build-type: Simple +cabal-version: >=1.10 + +library + exposed-modules: Lib + build-depends: base, filepath, directory + default-language: Haskell2010 + +executable pkg-oot-exe + main-is: Exe.hs + build-depends: base, pkg-oot + default-language: Haskell2010 + +test-suite pkg-oot-test + type: exitcode-stdio-1.0 + main-is: Exe.hs + build-depends: base, pkg-oot + +benchmark pkg-oot-bench + type: exitcode-stdio-1.0 + main-is: Exe.hs + build-depends: base, pkg-oot -- cgit v1.2.3