~ubuntu-branches/debian/sid/cde/sid

« back to all changes in this revision

Viewing changes to tests/run_all_tests.py

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2012-02-03 19:27:05 UTC
  • Revision ID: package-import@ubuntu.com-20120203192705-ll6f1nr45ead65ed
Tags: upstream-0.1
ImportĀ upstreamĀ versionĀ 0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# really crappy test runner
 
2
 
 
3
import os
 
4
from subprocess import *
 
5
 
 
6
for e in os.listdir('.'):
 
7
  if e == 'socket_test':
 
8
    print "  Skipping socket_test/"
 
9
    continue
 
10
  if os.path.isdir(e):
 
11
    if os.path.exists(os.path.join(e, 'testme.py')):
 
12
      os.chdir(e)
 
13
      print "Testing:", os.getcwd()
 
14
      (stdout, stderr) = Popen(["python", "testme.py"], stdout=PIPE, stderr=PIPE).communicate()
 
15
      if stdout: print "stdout: {", stdout, "}"
 
16
      if stderr: print "stderr: {", stderr, "}"
 
17
 
 
18
      os.chdir('..')
 
19