SyFi  0.3
run_all.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 import glob
00003 import os
00004 import sys
00005 
00006 print "Running all tests."
00007 files = glob.glob("*.cpp")
00008 for file in files:
00009     basename = file[:-4]
00010     cmd = "./%s > %s" % (basename, basename + ".out")
00011     print cmd
00012     res = os.system(cmd)
00013     if not res == 0:
00014         print "Failure (%d) in '%s'" % (res, file)
00015         #sys.exit(res)
00016 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator