aboutsummaryrefslogtreecommitdiff
path: root/tests/src-repo
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src-repo')
-rw-r--r--tests/src-repo/Exe.hs5
-rw-r--r--tests/src-repo/Setup.hs2
-rw-r--r--tests/src-repo/cabal.project7
-rw-r--r--tests/src-repo/packages.list1
-rw-r--r--tests/src-repo/src-repo.cabal19
5 files changed, 34 insertions, 0 deletions
diff --git a/tests/src-repo/Exe.hs b/tests/src-repo/Exe.hs
new file mode 100644
index 0000000..7655927
--- /dev/null
+++ b/tests/src-repo/Exe.hs
@@ -0,0 +1,5 @@
+module Main where
+
+import Lib
+
+main = print foo
diff --git a/tests/src-repo/Setup.hs b/tests/src-repo/Setup.hs
new file mode 100644
index 0000000..9a994af
--- /dev/null
+++ b/tests/src-repo/Setup.hs
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain
diff --git a/tests/src-repo/cabal.project b/tests/src-repo/cabal.project
new file mode 100644
index 0000000..8c4d704
--- /dev/null
+++ b/tests/src-repo/cabal.project
@@ -0,0 +1,7 @@
+packages: .
+
+source-repository-package
+ type: git
+ location: ${topdir}
+ tag: HEAD
+ subdir: tests/exelib
diff --git a/tests/src-repo/packages.list b/tests/src-repo/packages.list
new file mode 100644
index 0000000..80e52ce
--- /dev/null
+++ b/tests/src-repo/packages.list
@@ -0,0 +1 @@
+./
diff --git a/tests/src-repo/src-repo.cabal b/tests/src-repo/src-repo.cabal
new file mode 100644
index 0000000..086a696
--- /dev/null
+++ b/tests/src-repo/src-repo.cabal
@@ -0,0 +1,19 @@
+name: src-repo
+version: 0
+build-type: Simple
+cabal-version: >=1.10
+
+executable src-repo
+ main-is: Exe.hs
+ build-depends: base, exelib
+ default-language: Haskell2010
+
+test-suite exe-test
+ type: exitcode-stdio-1.0
+ main-is: Exe.hs
+ build-depends: base, exelib
+
+benchmark exe-bench
+ type: exitcode-stdio-1.0
+ main-is: Exe.hs
+ build-depends: base, exelib