diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/internal/winmake.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/internal/winmake.py b/scripts/internal/winmake.py index c9139977..82e99d96 100755 --- a/scripts/internal/winmake.py +++ b/scripts/internal/winmake.py @@ -354,6 +354,13 @@ def test_unicode(): @cmd +def test_connections(): + """Run connections tests""" + install() + sh("%s -m unittest -v psutil.tests.test_connections" % PYTHON) + + +@cmd def test_contracts(): """Run contracts tests""" install() @@ -373,6 +380,18 @@ def test_by_name(): @cmd +def test_script(): + """Quick way to test a script""" + try: + print(sys.argv) + name = sys.argv[2] + except IndexError: + sys.exit('second arg missing') + install() + sh("%s %s" % (PYTHON, name)) + + +@cmd def test_memleaks(): """Run memory leaks tests""" install() |
