diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-02 06:12:24 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2017-05-02 06:12:24 +0200 |
| commit | cc27d9f41264dc0baac39fba2d161dc668fd2c1d (patch) | |
| tree | 766a49cdb28764749d8ea213030056f8490725b0 /scripts | |
| parent | a8a535f7c5bd41f7513acfc4843b78c2b48be333 (diff) | |
| parent | e16005089ce4af80b92d66ef017bcfdfba81fc4e (diff) | |
| download | psutil-cc27d9f41264dc0baac39fba2d161dc668fd2c1d.tar.gz | |
Merge branch 'master' of github.com:giampaolo/psutil
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() |
