Commit Graph

20 Commits

Author SHA1 Message Date
Michael Snoyman
33a94d1c1f Skip check during test suite 2015-01-14 11:45:21 +02:00
Chris Done
d08d1b6248 Check for cycles when checking a build plan #375 2015-01-07 03:00:08 +01:00
Chris Done
45b33ac54d Flexible tests for checkBuildPlan (#375)
@snoyberg Can you confirm that this simple test suite works for you?
I've set this up so that I can then add some cyclic dependencies and add
an occurs check for that, but figured I'd setup tests for some of the
existing invariants first.

Should be like:

    $ cabal test --ghc-options=-O0; cat dist/test/stackage-0.4.0-spec.log
    Building stackage-0.4.0...
    Preprocessing library stackage-0.4.0...
    In-place registering stackage-0.4.0...
    Preprocessing executable 'stackage' for stackage-0.4.0...
    Preprocessing test suite 'spec' for stackage-0.4.0...
    [3 of 4] Compiling Stackage.BuildPlanSpec ( test/Stackage/BuildPlanSpec.hs, dist/build/spec/spec-tmp/Stackage/BuildPlanSpec.o )
    Linking dist/build/spec/spec ...
    Running 1 test suites...
    Test suite spec: RUNNING...
    Test suite spec: PASS
    Test suite logged to: dist/test/stackage-0.4.0-spec.log
    1 of 1 test suites (1 of 1 test cases) passed.
    Test suite spec: RUNNING...

    Stackage.BuildPlan
      simple package set
      bad version range on depdendency fails
      nonexistent package fails to check
      default package set checks ok
    Stackage.CorePackages
      works
      contains known core packages
      getCoreExecutables includes known executables
    Stackage.PackageIndex
      works
      getLatestDescriptions gives reasonable results

    Finished in 14.3302 seconds
    9 examples, 0 failures
    Test suite spec: PASS
    Test suite logged to: dist/test/stackage-0.4.0-spec.log
2015-01-04 22:54:33 +01:00
Chris Done
5da6e5cfa4 Dependency injection of newBuildPlan (#375) 2015-01-04 22:54:33 +01:00
Michael Snoyman
06d70e4ee4 Fix test suite 2014-12-22 11:08:52 +02:00
Michael Snoyman
d3cbcd91cc Slightly easier to digest test output 2014-12-15 08:22:42 +02:00
Michael Snoyman
0e1a160477 Cleanup in prep of release to Hackage 2014-12-15 08:10:16 +02:00
Michael Snoyman
17e23a8906 Cleanup 2014-12-08 14:16:30 +02:00
Michael Snoyman
bc26fc565c Fixed up some bad terms 2014-12-08 13:54:32 +02:00
Michael Snoyman
85597597bb WIP changes with better naming 2014-12-08 11:27:46 +02:00
Michael Snoyman
3ccc779af2 Update build plans 2014-12-07 19:10:35 +02:00
Michael Snoyman
ff2dd380b1 Less global state 2014-12-07 18:11:50 +02:00
Michael Snoyman
e97ac30568 More informative error messages 2014-12-07 13:04:02 +02:00
Michael Snoyman
31efd7eb20 Correct discovery of build tools deps 2014-12-07 11:42:42 +02:00
Michael Snoyman
2d4207a45a Remove unneeded debugging line 2014-12-05 11:57:01 +02:00
Michael Snoyman
e68ccae8e6 PackageDescription module, first stab 2014-12-04 18:46:36 +02:00
Michael Snoyman
bf47ded0b0 Horribly messy BuildPlan 2014-12-04 16:50:42 +02:00
Michael Snoyman
a97335fbc5 getLatestDescriptions 2014-12-04 14:27:25 +02:00
Michael Snoyman
658a52b635 PackageIndex 2014-12-04 14:08:04 +02:00
Michael Snoyman
97949eb86c Start of Stackage2: CorePackages 2014-12-04 13:19:45 +02:00