Commit Graph

50 Commits

Author SHA1 Message Date
Nikolay Yakimov
70d2a4704b Tests for TH, LHS and CPP with FileMapping 2015-08-16 17:36:10 +03:00
Nikolay Yakimov
c2ff5be4ea Better test for redirected check
Output now doesn't depend on compiler version
2015-08-15 21:07:35 +03:00
Nikolay Yakimov
0ad438461b Fix mistake in test file
Should be `module File`, since it's used as a redirection.
2015-08-15 21:07:35 +03:00
Nikolay Yakimov
eb28035753 Some file mapping tests 2015-08-15 21:07:35 +03:00
Daniel Gröber
c4d534ba1c Make sure preprocessed module are on the module path 2015-08-10 06:44:35 +02:00
Daniel Gröber
5b30fdde29 Remove version bounds from test cabal files 2015-08-10 03:57:47 +02:00
Daniel Gröber
8439f12cb0 Let Cabal determine the package-db stack 2015-08-07 07:31:08 +02:00
Daniel Gröber
2c9b79449a Add missing test data to extra-source-files 2015-08-06 04:22:51 +02:00
Daniel Gröber
1a53582a21 Add failing test for missing warnings #507 2015-08-05 08:01:23 +02:00
Daniel Vigovszky
84888627af Fixed custom cradle test 2015-04-26 17:33:01 +02:00
Daniel Vigovszky
5d9d6f5630 Custom cradle support 2015-04-23 17:25:45 +02:00
Daniel Gröber
80d91776c5 Cleanup and some fixes 2015-03-28 19:13:48 +01:00
Daniel Gröber
9d5ee06af8 Fix GHC 7.10-rc1 2015-03-06 14:04:16 +01:00
Daniel Gröber
01dde80385 Bring test suite up to date 2015-03-05 17:35:28 +01:00
Daniel Gröber
f0ea445a9b Cleanup errors and logging a bit 2015-03-05 17:35:28 +01:00
Rob Everest
56cc237e26 Support where clauses, let bindings and case expressions in case splitting (fixes #395) 2014-11-03 00:15:12 +01:00
Daniel Gröber
690a64f5b5 Merge branch 'master' of https://github.com/robeverest/ghc-mod
Conflicts:
	Language/Haskell/GhcMod/CabalConfig.hs
2014-09-12 05:21:12 +02:00
Rob Everest
2c2e7782d2 Use the cabal configuration flags where possible when finalizing the PackageDescription. 2014-09-12 13:15:05 +10:00
Daniel Gröber
1c8d1edb4d Workaround for #340 2014-09-12 04:02:32 +02:00
Alan Zimmerman
9101f306d1 Adding test case for https://github.com/kazu-yamamoto/ghc-mod/issues/336 2014-08-23 11:01:49 +02:00
Kazu Yamamoto
463ab9a26f adding a test for foreign export. 2014-08-12 16:37:05 +09:00
Daniel Gröber
c69b252e3c Add failing test for runGhcModT 2014-08-11 23:48:23 +02:00
Kazu Yamamoto
3050ba1863 fixing tests. 2014-07-15 21:40:22 +09:00
Daniel Gröber
f750d10a9a Cabal needs empty 00-index.cache and 00-index.tar in sanxbox 2014-05-03 15:38:27 +02:00
Daniel Gröber
82d1d6b982 Add cabal file to duplicate-pkgver test data
It's not really valid but enough to make ghc-mod happy, without it
findCradle doesn't work properly and without the empty `library`
sections it crashes even.
2014-05-03 15:35:04 +02:00
Daniel Gröber
759a6efab1 Add some test data
..for testing behaviour with multiple versions/ids of packges being
available
2014-05-03 15:35:04 +02:00
Daniel Gröber
ee0135aac2 Correct check-packageid/cabal.sandbox.config.in 2014-05-03 15:35:04 +02:00
Daniel Gröber
1639a7b2e0 Bring spec up to speed 2014-04-18 04:00:01 +02:00
Daniel Gröber
30b8366526 Refactor the way packages databases are handled
- cradle now stores a list of active package databases instead of only
  the user store (if present).

- rename `cradlePackageDb` -> `cradlePkgDbStack` as that`s what the ghc
  documentaion calls this kind of thing

- `getPackageDbPackages` now returns names of all visible packages in
  the given directory. Also the implementation now uses `ghc-pkg`
  instead of manually looking at the package database
2014-04-15 05:15:50 +02:00
Naohiro Aota
04022ab0ac Add test to check package id extraction
This commit add a failing test to check extracting package id. The test will
fail with the following output for now:

1) Cradle.getPackageDbPackages find a config file and extracts packages with their ids
expected: [("template-haskell",Just "template-haskell-2.8.0.0-32d4f24abdbb6bf41272b183b2e23e9c")]
 but got: []
2014-01-30 21:18:45 +09:00
Kazu Yamamoto
a94b1a3b5a fixing tests. 2013-09-21 18:37:33 +09:00
Kazu Yamamoto
1050ea3c63 more tests. 2013-09-21 15:32:22 +09:00
Kazu Yamamoto
c78d708c1c Introducing strict getPackageDbDir. 2013-09-21 15:10:43 +09:00
Kazu Yamamoto
d37e1592d4 test for Cabal 1.18.0. 2013-09-05 16:47:52 +09:00
Kazu Yamamoto
56b1e14219 test case for #118. 2013-05-08 16:47:57 +09:00
eagletmt
4b77af102b Add a test case for checking QuasiQuotes module 2013-04-01 15:55:29 +09:00
mvoidex
653912a066 Test for no fail on unicode output 2013-03-31 17:55:37 +04:00
Kazu Yamamoto
b87a1e0e39 a test case for info. 2013-03-30 21:24:57 +09:00
Kazu Yamamoto
4a5f5441f3 Fixing a bug of TH expansion for GHC 7.6 (#92). 2013-03-16 11:50:45 +09:00
eagletmt
24ada2abeb Gather all hs-source-dirs to check test modules in sub-directories 2013-03-15 17:40:06 +09:00
Kazu Yamamoto
0556ec330c test for fast (not TH). 2013-03-13 13:37:17 +09:00
Kazu Yamamoto
9e54c8c87b brushing up tests. 2013-03-13 12:48:26 +09:00
Kazu Yamamoto
6102c2d1b6 adding a test file. 2013-03-07 21:00:48 +09:00
Kazu Yamamoto
1a792c4943 pkgConf is a directory. 2013-03-07 20:50:04 +09:00
Kazu Yamamoto
a7b41d34f9 adding pkgconf. 2013-03-05 11:00:56 +09:00
Kazu Yamamoto
7ee8843a52 removing unnecessary files. 2013-02-15 10:39:40 +09:00
Kazu Yamamoto
6752a8edcf test for Info. 2013-02-13 16:22:07 +09:00
Kazu Yamamoto
a05e4e817d test for Cabal where exec depends on its lib and its fix code. 2013-02-13 15:29:24 +09:00
Kazu Yamamoto
5b2ddde59e test for Cabal and CabalApi. 2013-02-12 16:24:33 +09:00
Kazu Yamamoto
23045b5312 test for Lint. 2013-02-12 14:31:01 +09:00