summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* tests/__init__: return int from main()Zac Medico2011-10-091-5/+8
|
* tests/__init__: import print_functionZac Medico2011-10-091-0/+2
|
* tests: add --list flag to show available testsMike Frysinger2011-10-091-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 friendlyMike Frysinger2011-10-091-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 duplicationMike Frysinger2011-10-091-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 consistentMike Frysinger2011-10-081-10/+10
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Sort test cases, for predictable order.Zac Medico2011-08-281-0/+2
|
* Add skipped test support (for python 2.6 compat)Zac Medico2011-08-251-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 constructorZac Medico2011-08-251-9/+5
|
* Use bytes literals.Arfrever Frehtes Taifersar Arahesis2010-12-061-6/+3
|
* Ensure SystemExit is never caught.Zac Medico2010-08-261-0/+4
|
* Tests: Let ./runTests take files as argument to run only the test in these filesSebastian Luther2010-08-081-0/+27
|
* portage.tests.TestCase: Add assertRaisesMsg() from pkgcoreSebastian Luther2010-07-231-0/+17
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Use ImportError handling to import _TextTestResult which moved fromZac Medico2009-12-091-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 beenZac Medico2009-12-071-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 Arahesis2009-09-251-1/+2
| | | | | | compatibility with Python 3. svn path=/main/trunk/; revision=14421
* Replace _content_encoding, _fs_encoding, and _merge_encoding with directZac Medico2009-08-211-4/+4
| | | | | | usage of _encodings. svn path=/main/trunk/; revision=14113
* Use _content_encoding and _fs_encoding for unicode encoding/decoding.Zac Medico2009-08-171-4/+17
| | | | svn path=/main/trunk/; revision=14072
* Use realpath to resolve __file__ when searching for test inside main().Zac Medico2009-08-061-1/+1
| | | | svn path=/main/trunk/; revision=13928
* Remove odd os.getcwd() call used inside main() when searching for tests.Zac Medico2009-08-061-1/+1
| | | | svn path=/main/trunk/; revision=13927
* Change conditional USE deps syntax and expermental EAPI from 2_pre0 to 2_pre1.Zac Medico2008-07-301-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 Medico2008-05-251-1/+2
| | | | | | * Add test cases for conditional USE deps. svn path=/main/trunk/; revision=10398
* Rewrite testing to use __test__ instead of hardcoded dirsAlec Warner2007-09-071-2/+13
| | | | svn path=/main/trunk/; revision=7748
* Fix spacing issues, importsAlec Warner2007-07-221-16/+17
| | | | svn path=/main/trunk/; revision=7357
* Add a test case for the logfile functionality of portage.spawn().Zac Medico2007-06-191-1/+2
| | | | svn path=/main/trunk/; revision=6870
* Add "bin" to testDirs.Zac Medico2007-03-171-1/+1
| | | | svn path=/main/trunk/; revision=6233
* bump ________foo from the TestCase class since _exc_info() doesn't do ↵Alec Warner2007-03-171-6/+3
| | | | | | anything anyway svn path=/main/trunk/; revision=6228
* fix for older python who have oddly named __exc_info()Alec Warner2007-03-171-0/+3
| | | | svn path=/main/trunk/; revision=6227
* Fix broken exception handling.Zac Medico2007-03-171-3/+3
| | | | svn path=/main/trunk/; revision=6223
* Part of my attempt now involves cleaning up config; this means for me; ↵Alec Warner2007-03-071-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 sakeAlec Warner2007-03-071-17/+12
| | | | svn path=/main/trunk/; revision=6189
* Roll our own unittest framework to add skip support.Alec Warner2007-03-061-7/+126
| | | | svn path=/main/trunk/; revision=6181
* fix a few broken testsAlec Warner2007-02-101-1/+1
| | | | svn path=/main/trunk/; revision=5935
* remove redundant directory nowAlec Warner2007-02-021-1/+1
| | | | svn path=/main/trunk/; revision=5871
* A somewhat more intelligent layout, move tests into portaage namespace so we ↵Alec Warner2007-02-011-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