- Jun 21, 2010
-
-
Iustin Pop authored
… for the serialization/deserialization of the job and opcode status. Job status 'gone' was not actually used. It can be reintroduced if needed.
-
- Jun 01, 2010
-
-
Iustin Pop authored
These are not comprehensive, but at least we have a start.
-
- May 30, 2010
-
-
Iustin Pop authored
QuickCheck's batch driver (at least v1) doesn't show the test aborts, but simply discards the specific exception and increases the abort count. This makes it hard to debug the tests, so we modify our own test wrapper (which so far only tracked total failures) to show any exceptions.
-
- May 27, 2010
-
-
Iustin Pop authored
The tests are moved to a separate data structure, and we can select a subset of tests to run.
-
Iustin Pop authored
-
- May 20, 2010
-
-
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 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.
-
- Oct 15, 2009
-
-
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).
-
- Oct 14, 2009
-
-
Iustin Pop authored
-
- Sep 29, 2009
-
-
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 tests. 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.
-
- Aug 31, 2009
-
-
Iustin Pop authored
-
Iustin Pop authored
This include instance text load tests.
-
- Jun 01, 2009
-
-
Iustin Pop authored
This patch makes sure that all references to the name of the software is ganeti-htools, not simply htools.
-
Iustin Pop authored
This doc-patch adds copyright and license information to (hopefully) all needed files.
-
Iustin Pop authored
This patch moves the test declaration into QC.hs, so that test.hs has to be modified only when we add a new test category.
-
Iustin Pop authored
-
Iustin Pop authored
This is more of an exercise in QuickCheck than strong testing.
-
Iustin Pop authored
This patch adds a QuickCheck-based test infrastructure and initial tests based on it. The PeerMap module has a 100% coverage
☺️ Side-note: one has to read the source of QuickCheck to see how to use it (especially the Batch submodule), the docs are not enough…
-