Commit 221b7364 authored by Federico Allocati's avatar Federico Allocati
Browse files

Added method to submit the combinations to OAR

parent 6f4ec33c
......@@ -10,6 +10,8 @@ srcdir = '.'
blddir = 'build'
import glob
import os
import subprocess
import limbo
from waflib.Build import BuildContext
......@@ -94,6 +96,15 @@ def build_extensive_tests(ctx):
ctx.recurse('src/tests')
def submit_extensive_tests(ctx):
for fullname in glob.glob('build/src/tests/combinations/*'):
if os.path.isfile(fullname) and os.access(fullname, os.X_OK):
fpath, fname = os.path.split(fullname)
s = "oarsub -d build/src/tests/combinations/ -l /nodes=1/core=2,walltime=00:15:00 -n " + fname + " -O " + fname + ".stdout.%jobid%.log -E " + fname + ".stderr.%jobid%.log " + fpath + '/' + fname
retcode = subprocess.call(s, shell=True, env=None)
print "oarsub returned:" + str(retcode)
def shutdown(ctx):
if ctx.options.qsub:
limbo.qsub(ctx.options.qsub)
......
Supports Markdown
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