summaryrefslogtreecommitdiffstats
path: root/unit-tests
Commit message (Collapse)AuthorAgeFilesLines
* Port to Python 3 while maintaining compatibility with Python >= 2.6Slavek Kabrda2015-02-032-14/+17
| | | | Signed-off-by: David Sommerseth <davids@redhat.com>
* Improved some log linesDavid Sommerseth2009-12-151-5/+5
|
* Removed yet another dmidecode.dump() test when running as non-rootDavid Sommerseth2009-12-151-3/+4
|
* Fixed errornous log lineDavid Sommerseth2009-12-141-1/+1
|
* Do not try to dump DMI data if test hardware do not support itDavid Sommerseth2009-12-141-7/+14
|
* Added WARN as an alternative to soft failuresNima Talebi2009-12-141-4/+17
|
* Run unit tests with more verbose infoDavid Sommerseth2009-12-141-1/+1
|
* Fixed missing quotes, which lead all tests to failDavid Sommerseth2009-12-141-1/+1
|
* Now takes flags for color and verbosityNima Talebi2009-12-141-230/+303
| | | | | Default is no color, and no verbosity, exiting with a 0 on no failures, and 1 otherwise.
* Adding the other memory dumps tooNima Talebi2009-12-1417-0/+0
|
* Make the unit test run without installing python-dmidecodeDavid Sommerseth2009-12-101-1/+15
| | | | | Load the newly compiled module from the python build dir and use the local pymap.xml file.
* Removed not needed code and fixed Makefile to run test unit testDavid Sommerseth2009-12-107-694/+1
|
* Added a couple of DMI dumps to be able to run tests as non-rootDavid Sommerseth2009-12-102-0/+0
|
* Cleaned up the unit test a little bitDavid Sommerseth2009-12-101-31/+25
| | | | | Don't try to do tests which only root can do if not running as root user and removed not needed code or comments
* Removed no longer needed fileDavid Sommerseth2009-06-101-1/+0
|
* Discovered another issue with Python and importsDavid Sommerseth2009-06-101-0/+1
| | | | | | | | | | | | | | | | | | The shard library got renamed to dmidecodemodule.so, and this was not clever. When you do 'import dmidecode' in Python, it will look for files in this order: dmidecode dmidecode.so dmidecodemodule.so dmidecode.py dmidecode.pyc This is of course a problem when the wrapper introduced in commit 65c9384ec9b6e265aba11227ffa37ae7a6a787d1 is called dmidecode.py, and Python attempts to load dmidecodemodule.so before dmidecode.py. To solve this, dmidecodemodule.so is now renamed to dmidecodemod.so.
* Fixed import issues with dmidecodeDavid Sommerseth2009-06-102-12/+12
| | | | | | | | | | | | | | | | As we now include libxml2 and the required libxml2mod (which is used to wrap xmlDoc and xmlNode data into Python objects), importing only dmidecode caused a failure. If adding import libxml2 first, everything would work out fine. To avoid this issue, due to backwards compatibility, a tiny dmidecode wrapper is implemted as well. The dmidecode.so module is now renamed to dmidecodemodule.so, and the wrapper is now called dmidecode.py. To simplify things, the dmidecodeXML module introduced in commit b25b2ca548508cd2beb26f465b7bc5a296592461 is not merged into the new dmidecode.py The constants mentioned are now called dmidecode.DMIXML_NODE and dmidecode.DMIXML_DOC and to instantiate the dmidecodeXML class, dmidecode.dmidecodeXML() is used.
* Updated unit-test to check the XML APIDavid Sommerseth2009-06-101-1/+72
|
* CleanupNima Talebi2009-05-243-4/+7
|
* Completed preliminary reimplementation of type()Nima Talebi2009-05-241-0/+2
| | | | | | | Updated test unit to match. Throw an exception instead of returning None/False in some functions.
* Expanding the test case to include the POC demoNima Talebi2009-05-239-0/+891
The POC demo does not actually do much testing yet, other than just working or not working - but it's in place now for future enhancements.