Commit 6936b9f5 authored by Denis Bilenko's avatar Denis Bilenko

add test__examples.py

parent 81f3f81d
import sys
import os
import glob
modules = []
for path in glob.glob('../examples/*.py'):
modules.append(path)
assert modules
error = 0
for path in modules:
if path.endswith('server.py'):
print path, 'skipping'
else:
print path, 'running'
sys.stdout.flush()
res = os.system('%s %s' % (sys.executable, path))
if res:
error = 1
print path, 'failed'
print '-----'
if error:
sys.exit(1)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment