Commit [r659] Maximize Restore History

Run the tests using test.py rather than test.cmd. This enables smarter logic to determine the interpreters present (e.g., if the interpreter can't be run because it is for CE, then don't use it to run tests). Also report statistics about the number of tests that succeeded/skipped/failed.

jretz 2008-05-19

added /trunk/py2exe/test/reinstall.cmd
changed /trunk/py2exe/test/setup_noZipFile.py
changed /trunk/py2exe/test/setup_win32com_shell.py
changed /trunk/py2exe/test/test.py
copied /trunk/py2exe/test/test.cmd -> /trunk/py2exe/test/checkTestModule.py
/trunk/py2exe/test/reinstall.cmd Diff Switch to side-by-side view
Loading...
/trunk/py2exe/test/setup_noZipFile.py Diff Switch to side-by-side view
Loading...
/trunk/py2exe/test/setup_win32com_shell.py Diff Switch to side-by-side view
Loading...
/trunk/py2exe/test/test.py Diff Switch to side-by-side view
Loading...
/trunk/py2exe/test/test.cmd to /trunk/py2exe/test/checkTestModule.py
--- a/trunk/py2exe/test/test.cmd
+++ b/trunk/py2exe/test/checkTestModule.py
@@ -1,9 +1,8 @@
-@echo off
+import sys
 
-for /D %%f in (C:\Python??) do (
-    "%%f\python.exe" test.py
-    if errorlevel 1 goto fail
-)
-echo Success!!!
-
-:fail
+try:
+    __import__(sys.argv[1])
+except Exception, details:
+    print details
+    sys.exit(1)
+sys.exit(0)