- Jan 18, 2011
-
-
Iustin Pop authored
As the class names should be now consistent with the OP_IDs, we add a check for wrongly-defined OP_IDs. However, the future removal of the hand-coded OP_IDs will render this obsolete, so this check is introduced just to make sure that the previous renaming patches did the right job, and it will then be removed. The consistency checks require renaming the test opcodes, which were using arbitrary names, depending on test author. They are now all standardized on OpTest (local scope). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
-
- Jan 10, 2011
-
-
Iustin Pop authored
Currently, the unittest TestDispatchTable in mcpu unittest does a hard-coded approach to test whether an opcode should be included or not in the mcpu.Processor dispatch table. This is not flexible, so we replace it with two changes: - first, we do not return the base OpCode in opcodes.OP_MAPPING; rationale being that we shouldn't need to serialise or deserialise this opcode during normal operation - second, we add a new attribute WITH_LU (other name suggestions welcome) to the base opcode set to True, and we explicitly set it to False in OpTestDummy, thus automatic skipping of such LUs in the unittest (and in other places) To correct for the new behaviour, the tests in the opcode unittests are updated to include OpCode explicitly. Note: we also replace assert_ with assertTrue in the affected unittest (as assert_ is deprecated in 2.7). Signed-off-by:
Iustin Pop <iustin@google.com> Reviewed-by:
Michael Hanselmann <hansmi@google.com>
-
- Jan 05, 2011
-
-
Michael Hanselmann authored
Test full summary instead of just format. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This allows the function to be used in other places as well. An optional parameter is added to control whether default values should be set. Unittests are added, providing full coverage. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
… by detecting duplicates. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
Michael Hanselmann authored
This is the first step for migrating them from cmdlib. A metaclass is used to define “__slots__” upon class creation time (not instantiation). Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-
- Feb 23, 2010
-
-
Michael Hanselmann authored
According to “coverage”, this covers 99% of the code. Signed-off-by:
Michael Hanselmann <hansmi@google.com> Reviewed-by:
Iustin Pop <iustin@google.com>
-