Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tests/__init__: return int from main() | Zac Medico | 2011-10-09 | 1 | -5/+8 |
| | |||||
* | tests/__init__: import print_function | Zac Medico | 2011-10-09 | 1 | -0/+2 |
| | |||||
* | tests: add --list flag to show available tests | Mike Frysinger | 2011-10-09 | 1 | -21/+34 |
| | | | | | | | | | Trying to guess at what runtests actually wants in terms of command line tests is pretty hard. Any invalid value just gives you an ugly traceback. So add a helper --list option so the user can easily figure out what the code wants *exactly*. Signed-off-by: Mike Frysinger <vapier@gentoo.org> | ||||
* | tests: add a --help option to make runtest more friendly | Mike Frysinger | 2011-10-09 | 1 | -2/+7 |
| | | | | | | | At the moment, trying to do `./runtests.h -h` just produces an ugly and indecipherable traceback. Make it a bit more friendly. Signed-off-by: Mike Frysinger <vapier@gentoo.org> | ||||
* | tests: split up getTests into helper funcs to avoid duplication | Mike Frysinger | 2011-10-09 | 1 | -20/+17 |
| | | | | | | | This avoids a little duplication between the getTestFromCommandLine and getTests funcs, and they'll get utilized even more in follow up patches. Signed-off-by: Mike Frysinger <vapier@gentoo.org> | ||||
* | tests: fix whitespace to be consistent | Mike Frysinger | 2011-10-08 | 1 | -10/+10 |
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> | ||||
* | Sort test cases, for predictable order. | Zac Medico | 2011-08-28 | 1 | -0/+2 |
| | |||||
* | Add skipped test support (for python 2.6 compat) | Zac Medico | 2011-08-25 | 1 | -1/+17 |
| | | | | | | Python supports skipped tests since 2.7, but we'll implement support ourselves for python 2.6 compatibility. This is a simple extension of the todo support that we have already implemented. | ||||
* | TestCase: remove python 2.4 compat constructor | Zac Medico | 2011-08-25 | 1 | -9/+5 |
| | |||||
* | Use bytes literals. | Arfrever Frehtes Taifersar Arahesis | 2010-12-06 | 1 | -6/+3 |
| | |||||
* | Ensure SystemExit is never caught. | Zac Medico | 2010-08-26 | 1 | -0/+4 |
| | |||||
* | Tests: Let ./runTests take files as argument to run only the test in these files | Sebastian Luther | 2010-08-08 | 1 | -0/+27 |
| | |||||
* | portage.tests.TestCase: Add assertRaisesMsg() from pkgcore | Sebastian Luther | 2010-07-23 | 1 | -0/+17 |
| | |||||
* | Remove all svn $Id keywords. | Zac Medico | 2010-03-24 | 1 | -1/+0 |
| | |||||
* | Use ImportError handling to import _TextTestResult which moved from | Zac Medico | 2009-12-09 | 1 | -57/+8 |
| | | | | | | | unittest to unittest.runner in python-2.7. Thanks to Arfrever for the suggestion. svn path=/main/trunk/; revision=14972 | ||||
* | Copy the unittest._TextTestResult class from python-2.6 since it's been | Zac Medico | 2009-12-07 | 1 | -6/+60 |
| | | | | | | removed in python-2.7. svn path=/main/trunk/; revision=14963 | ||||
* | Use list comprehensions instead of filter() or map() in some places for ↵ | Arfrever Frehtes Taifersar Arahesis | 2009-09-25 | 1 | -1/+2 |
| | | | | | | compatibility with Python 3. svn path=/main/trunk/; revision=14421 | ||||
* | Replace _content_encoding, _fs_encoding, and _merge_encoding with direct | Zac Medico | 2009-08-21 | 1 | -4/+4 |
| | | | | | | usage of _encodings. svn path=/main/trunk/; revision=14113 | ||||
* | Use _content_encoding and _fs_encoding for unicode encoding/decoding. | Zac Medico | 2009-08-17 | 1 | -4/+17 |
| | | | | svn path=/main/trunk/; revision=14072 | ||||
* | Use realpath to resolve __file__ when searching for test inside main(). | Zac Medico | 2009-08-06 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=13928 | ||||
* | Remove odd os.getcwd() call used inside main() when searching for tests. | Zac Medico | 2009-08-06 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=13927 | ||||
* | Change conditional USE deps syntax and expermental EAPI from 2_pre0 to 2_pre1. | Zac Medico | 2008-07-30 | 1 | -1/+1 |
| | | | | | | | | | | | | | | Conditional syntax examples: Compact Form Equivalent Expanded Form foo[bar?] bar? ( foo[bar] ) !bar? ( foo ) foo[!bar?] bar? ( foo ) !bar? ( foo[-bar] ) foo[bar=] bar? ( foo[bar] ) !bar? ( foo[-bar] ) foo[!bar=] bar? ( foo[-bar] ) !bar? ( foo[bar] ) svn path=/main/trunk/; revision=11274 | ||||
* | * Fix dep_getusedeps() test to work with tuples. | Zac Medico | 2008-05-25 | 1 | -1/+2 |
| | | | | | | * Add test cases for conditional USE deps. svn path=/main/trunk/; revision=10398 | ||||
* | Rewrite testing to use __test__ instead of hardcoded dirs | Alec Warner | 2007-09-07 | 1 | -2/+13 |
| | | | | svn path=/main/trunk/; revision=7748 | ||||
* | Fix spacing issues, imports | Alec Warner | 2007-07-22 | 1 | -16/+17 |
| | | | | svn path=/main/trunk/; revision=7357 | ||||
* | Add a test case for the logfile functionality of portage.spawn(). | Zac Medico | 2007-06-19 | 1 | -1/+2 |
| | | | | svn path=/main/trunk/; revision=6870 | ||||
* | Add "bin" to testDirs. | Zac Medico | 2007-03-17 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=6233 | ||||
* | bump ________foo from the TestCase class since _exc_info() doesn't do ↵ | Alec Warner | 2007-03-17 | 1 | -6/+3 |
| | | | | | | anything anyway svn path=/main/trunk/; revision=6228 | ||||
* | fix for older python who have oddly named __exc_info() | Alec Warner | 2007-03-17 | 1 | -0/+3 |
| | | | | svn path=/main/trunk/; revision=6227 | ||||
* | Fix broken exception handling. | Zac Medico | 2007-03-17 | 1 | -3/+3 |
| | | | | svn path=/main/trunk/; revision=6223 | ||||
* | Part of my attempt now involves cleaning up config; this means for me; ↵ | Alec Warner | 2007-03-07 | 1 | -8/+6 |
| | | | | | | removing the file-based stuff from it (config_path) and encapsulating that into classes. This is the first one, a simple PackageKeywords class that does file-based stuff, no recursion yet but soon. Trying to do TDD here as well,so tests first then code. svn path=/main/trunk/; revision=6190 | ||||
* | Take marien's advice, turn Skips into Todos for clarity sake | Alec Warner | 2007-03-07 | 1 | -17/+12 |
| | | | | svn path=/main/trunk/; revision=6189 | ||||
* | Roll our own unittest framework to add skip support. | Alec Warner | 2007-03-06 | 1 | -7/+126 |
| | | | | svn path=/main/trunk/; revision=6181 | ||||
* | fix a few broken tests | Alec Warner | 2007-02-10 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=5935 | ||||
* | remove redundant directory now | Alec Warner | 2007-02-02 | 1 | -1/+1 |
| | | | | svn path=/main/trunk/; revision=5871 | ||||
* | A somewhat more intelligent layout, move tests into portaage namespace so we ↵ | Alec Warner | 2007-02-01 | 1 | -0/+55 |
can import them easier, seems to be a more common layout from what I've seen. Also rewrite the test runner to work with new layout svn path=/main/trunk/; revision=5863 |