summaryrefslogtreecommitdiff
path: root/make.bat
diff options
context:
space:
mode:
authorGiampaolo Rodola' <g.rodola@gmail.com>2014-01-18 05:45:46 -0800
committerGiampaolo Rodola' <g.rodola@gmail.com>2014-01-18 05:45:46 -0800
commita00649e02a9ae310cb321d70001f30c9c0964799 (patch)
tree4a6c3f93bdfefed92983bae79d0e8e594e390f93 /make.bat
parentbcacba64b199262f54e4a7904d7c7beb8c00ecfc (diff)
downloadpsutil-a00649e02a9ae310cb321d70001f30c9c0964799.tar.gz
make.bat add test-process and test-system commands
Diffstat (limited to 'make.bat')
-rw-r--r--make.bat24
1 files changed, 20 insertions, 4 deletions
diff --git a/make.bat b/make.bat
index 045ad536..4c9b3281 100644
--- a/make.bat
+++ b/make.bat
@@ -26,13 +26,15 @@ set PATH=C:\MinGW\bin;%PATH%
if "%1" == "help" (
:help
echo Run `make ^<target^>` where ^<target^> is one of:
- echo clean clean build files
echo build compile without installing
+ echo build-exes create exe installers in dist directory
+ echo clean clean build files
echo install compile and install
- echo uninstall uninstall
- echo test run tests
echo memtest run memory leak tests
- echo build-exes create exe installers in dist directory
+ echo test run tests
+ echo test-process run process related tests
+ echo test-system run system APIs related tests
+ echo uninstall uninstall
echo upload-exes upload exe installers on pypi
goto :eof
)
@@ -94,6 +96,20 @@ if "%1" == "test" (
goto :eof
)
+if "%1" == "test-process" (
+ :test
+ call :install
+ %PYTHON% -m unittest -v test.test_psutil.TestProcess
+ goto :eof
+)
+
+if "%1" == "test-system" (
+ :test
+ call :install
+ %PYTHON% -m unittest -v test.test_psutil.TestSystem
+ goto :eof
+)
+
if "%1" == "memtest" (
:memtest
call :install