1. 27 May, 2010 2 commits
  2. 20 May, 2010 2 commits
    • Iustin Pop's avatar
      Add more unit tests for allocation/balance · 3fea6959
      Iustin Pop authored
      The patch adds some simple unit-tests for both the allocation function
      (we can allocate small instances on an empty cluster, we can allocate in
      tiered more starting from any size) and the balancing functions (one
      single instance is placed optimally, a full cluster plus an empty node
      can be rebalanced). The coverage has increased greatly, since this is
      the bulk of the algorithm/code.
      Also, the cluster tests are now being run with different options, since
      they are much slower.
    • Iustin Pop's avatar
      Change some test constants · 49f9627a
      Iustin Pop authored
      First, we reduce the max size of the disks, since Int on 32bits will
      overflow for big simulated clusters. This is a real issue, that will
      need fixing in real life, but for now we just "silence" this test.
      Second, we increase the amount of time a test is allowed to run,
      otherwise on slower computers some tests might time-out.
  3. 15 Oct, 2009 1 commit
    • Iustin Pop's avatar
      More hlint fixes · 3a3c1eb4
      Iustin Pop authored
      This makes (for now) the code hlint-clean. This is per se not a huge
      gain, but it allows easier tracking of regressions in style later
      (one-two new violations are easier to diagnose when not hidden among 20
      “known” ones).
  4. 14 Oct, 2009 1 commit
  5. 29 Sep, 2009 1 commit
    • Iustin Pop's avatar
      Make the test suite return an reasonable exit code · 38f536cb
      Iustin Pop authored
      Test.QuickCheck.Batch.runTests doesn't return any error statistics,
      which makes the test suite just display errorrs and always exit with
      exit code 0. This is not good, since one cannot then actually batch run
      This patch adds a wrapper over Batch.run which also modifies a passed
      IORef Int to keep track of how many test failures or test aborts we had.
      This makes it easy then to exit with an appropriate exit code.
  6. 31 Aug, 2009 2 commits
  7. 01 Jun, 2009 6 commits