File: run_all_tests.py

package info (click to toggle)
cde 0.1%2Bgit9-g551e54d-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 11,176 kB
  • sloc: ansic: 75,885; sh: 4,282; python: 1,006; perl: 438; makefile: 297; lisp: 44; java: 5
file content (19 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# really crappy test runner

import os
from subprocess import *

for e in os.listdir('.'):
  if e == 'socket_test':
    print "  Skipping socket_test/"
    continue
  if os.path.isdir(e):
    if os.path.exists(os.path.join(e, 'testme.py')):
      os.chdir(e)
      print "Testing:", os.getcwd()
      (stdout, stderr) = Popen(["python", "testme.py"], stdout=PIPE, stderr=PIPE).communicate()
      if stdout: print "stdout: {", stdout, "}"
      if stderr: print "stderr: {", stderr, "}"

      os.chdir('..')