summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* tsort_dict -> tsort in the test case.Chris Lumens2010-11-111-3/+3
|
* Move StorageTestCase into its own file for use by other tests.David Lehman2010-10-222-266/+288
|
* Add device action test suite.David Lehman2010-10-222-1/+1192
|
* Fix test environment python path.David Lehman2010-10-221-1/+1
|
* Add a topological sort implementation for use in sorting device actions.David Lehman2010-10-222-1/+63
|
* Add test cases for the new Size class.David Cantrell2010-09-132-0/+92
|
* Update pylint test for pylint 0.20.1Brian C. Lane2010-07-121-5/+5
| | | | | pylint 0.20.1 merges --enable-* and --disable-* options into --enable and --disable only.
* booty and isys have moved, so update runpylint.sh.Chris Lumens2010-06-301-9/+8
|
* Import anaconda_log correctly to avoid the double import problem.Chris Lumens2010-06-281-4/+4
|
* Move isys and booty into the pyanaconda/ directory, adjust paths to match.Chris Lumens2010-06-283-3/+6
| | | | | | | This is required so the source layout and package layout have a similar enough structure to make our test setup work. Without this move, you can't run "make check" or checkbot without getting error messages about no such module pyanaconda.booty.
* Add the proxy tests to the top-level test framework.Chris Lumens2010-06-212-0/+3
| | | | Now, "make check" will run the regex tests as well as everything else.
* Fix pyanaconda.kickstart import, and init logging before doing anything else.Chris Lumens2010-06-212-3/+14
|
* Do not assume /dev/loop0 and /dev/loop1 are available.Chris Lumens2010-06-216-73/+99
| | | | | | | | | I do a lot of live image making, which results in those loopback devices sometimes not being available. Luckily, losetup will tell us the name of the next free device. Also fix up some imports so they're in the right place, while I'm digging around in these files.
* tearDown -> tearDownModules.Chris Lumens2010-06-211-1/+1
|
* Fix test suite Makefile.am files.Chris Lumens2010-06-213-8/+12
| | | | | | | | | | (1) Many tests have moved from foo.py to foo_test.py, so that needs changing in the TESTS variable. (2) Add a $PATH that includes /sbin and /usr/sbin so losetup and storage commands work. (3) Change PYTHONPATH to include new pyanaconda directory.
* Add test cases for proxy regex (#602712)Brian C. Lane2010-06-174-1/+134
| | | | | | | Check for proper operation of the proxy regex. The regex neeeds to be copied over from yuminstall.py if it changes. Related: rhbz#602712
* Fix up pylint to work with the new source layout.Chris Lumens2010-06-011-5/+6
|
* Add simple firewall unit testMartin Sivak2010-05-311-0/+49
|
* Improve module cleanup in our TestCase class and fix issues in FS mock class.Martin Sivak2010-05-311-2/+6
|
* Structure the repo layout so it matches final structure better and make isys ↵Martin Sivak2010-05-3117-45/+59
| | | | | | a real Python package. Also updates the build and autotools stuff to work with the new structure
* Improve module cleanup in our TestCase class and fix issues in FS mock class.Martin Sivak2010-05-202-5/+27
|
* Move importing of tested modules into setUp methodsMartin Sivak2010-05-146-9/+27
| | | | When import fails on file level, it breaks the whole unit test framework. When it breaks in the test, only the single test fails, so I'm moving this to be imported at test level.
* Add Mock classesMartin Sivak2010-05-144-6/+413
|
* Add a script for running pylint on anacondaHans de Goede2010-04-152-0/+106
| | | | | | | | | | This patch introduces a runpylint.sh script which invokes pylint in such a way that it is usable with anaconda. Amongst other things it filters out any false positives listed (regex) in the pylint-false-positives file. If any problems where found the scripts prints them to stdout and saves them in pylint-log. In this case it will also have a non 0 exit status (for future make archive integration).
* Fix "make check" to run the tests against your git checkout of anaconda.Chris Lumens2010-04-138-3/+26
|
* Add a test case to verify that kickstart commands use the right handler.Chris Lumens2010-04-134-1/+75
| | | | | | | The aim of this is to prevent bugs like 581829, where a later version of a command is added in pykickstart but anaconda is never updated to use the right version. Of course, this shifts the burden from updating kickstart.py to running the test case. But it's better than nothing.
* Add a parser for 'multipath -d' output.Peter Jones2010-01-201-0/+29
| | | | | We need to find out about multipath topology from /sbin/multipath, which unfortunately needs some parsing - it's fairly easy, though.
* Add Makefile.am files for tests/David Cantrell2009-06-093-0/+70
|
* Added the run_test.py script to easily run the test cases.Martin Gracik2009-03-178-58/+99
| | | | | | Some small changes to test cases were needed. Added suite() function to them and changed the class names. Also __init__.py files were added to the directories.
* Added test case for devicelib mdraid.py.Martin Gracik2009-03-132-27/+138
| | | | | | | | | | Rewrote the devicelibs unittest baseclass so we can create and remove another loop devices within the tests. Rewrote the isRaidXY(raidlevel) functions in mdraid.py into one function isRaid(XY, raidlevel). Rewrote the get_raid_min_members and get_raid_max_spares functions to use the new isRaid function, and not use many if-elif-else statements. Changed the minimum raid members for raid10 to 2.
* Added crypto.py unittest; Updated devicelibs tests baseclass.py and lvm.pyMartin Gracik2009-03-093-2/+128
| | | | | baseclass.py needed some imports to work properly. Updated the test for getMaxLVSize() in lvm.py to not pass PE size as argument.
* Added unittests for devicelibs lvm.py and swap.py; Corrected errors in ↵Martin Gracik2009-03-043-0/+335
lvm.py and swap.py