updated run_CI_tests.py

This commit is contained in:
Jocelyn Fiat
2011-11-16 07:51:04 +01:00
parent a76eb75267
commit 4ed91a91a2

View File

@@ -51,13 +51,22 @@ def runTestForProject(where):
os.chdir(where)
# First we have to remove old compilation
rm_dir("EIFGENs")
# compile the library
cmd = "ecb -config %s -target restbucks -batch -c_compile" % (os.path.join ("examples", "restbucks", "restbucks-safe.ecf"))
res = eval_cmd(cmd)
sleep(1)
if sys.platform == 'win32':
cmd = "tests\\check_compilations.bat"
res = eval_cmd(cmd)
else:
cmd = "tests//check_compilations.sh"
res = eval_cmd(cmd)
sleep(1)
if __name__ == '__main__':
runTestForProject(os.path.join (os.getcwd(), '..'))