Esempio n. 1
0
def substep3(depth="", diedepth="", **args):
    sshaft.beginstep('substep3', args)
    depth = depth + ":substep3"
    if (depth == diedepth):
        sshaft.dief("ERROR: Error depth reached: " + diedepth)

    return sshaft.endstep()
Esempio n. 2
0
def substep3(depth="", diedepth="", **args):
    sshaft.beginstep('substep3',args)
    depth=depth+":substep3"
    if (depth==diedepth):
        sshaft.dief("ERROR: Error depth reached: "+diedepth)

    return sshaft.endstep()
Esempio n. 3
0
def substep1(depth="", diedepth="", **args):
    sshaft.beginstep('substep1', args)
    depth = depth + ":substep1"
    if (depth == diedepth):
        sshaft.dief("ERROR: Error depth reached: " + diedepth)

    sshaft.substep(cmd=[substep2, [], {'depth': depth, 'diedepth': diedepth}])

    return sshaft.endstep()
Esempio n. 4
0
def substep1(depth="", diedepth="", **args):
    sshaft.beginstep('substep1',args)
    depth=depth+":substep1"
    if (depth==diedepth):
        sshaft.dief("ERROR: Error depth reached: "+diedepth)

    sshaft.substep(cmd=[substep2,[],{'depth':depth, 'diedepth':diedepth }])
    
    return sshaft.endstep()
Esempio n. 5
0
def substep2(depth="", diedepth="", **args):
    sshaft.beginstep('substep2', args)
    depth = depth + ":substep2"
    if (depth == diedepth):
        sshaft.dief("ERROR: Error depth reached: " + diedepth)

    cmd = "testsshaft.tcl"
    cmd = cmd + " -depth " + depth
    cmd = cmd + " -return"
    if (diedepth):
        cmd = cmd + " -die " + diedepth
    sshaft.substep(mode='unix_step', cmd=cmd)

    for app in string.split(sshaft.gettechvar('Sshaft::Apps::AppList')):
        sshaft.dir_init('run/' + app, app)
        cmd = sshaft.gettechvar('Sshaft::Apps::' + app + '::TestCmd')
        sshaft.substep(mode=app + '_step', cmd=cmd, rundir='run/' + app)

    return sshaft.endstep()
Esempio n. 6
0
def substep2(depth="", diedepth="", **args):
    sshaft.beginstep('substep2',args)
    depth=depth+":substep2"
    if (depth==diedepth):
        sshaft.dief("ERROR: Error depth reached: "+diedepth)

    cmd="testsshaft.tcl"
    cmd=cmd+" -depth "+depth
    cmd=cmd+" -return"
    if (diedepth):
        cmd=cmd+" -die "+diedepth
    sshaft.substep(mode='unix_step',cmd=cmd)
    
    for app in string.split(sshaft.gettechvar('Sshaft::Apps::AppList')):
        sshaft.dir_init('run/'+app,app)
        cmd=sshaft.gettechvar('Sshaft::Apps::'+app+'::TestCmd')
        sshaft.substep(mode=app+'_step',cmd=cmd,rundir='run/'+app)

    return sshaft.endstep()
Esempio n. 7
0
# Parse arguments
args=sys.argv[1:]
sshaft.logf('LOG_INFO',"Arguments: "+str(args))
while (len(args)>0):
    arg=args[0]
    args=args[1:]
    if (arg=="-return"):
        ret=1
    elif (arg=="-depth"):
        depth=args[0]
        args=args[1:]
    elif (arg=="-die"):
        diedepth=args[0]
        args=args[1:]
    else:
        sshaft.logf('LOG_WARN',"WARNING: Unrecognized argument "+arg)

if (not depth):
    depth="testapp.py"
else:
    depth=depth+":testapp.py"

if (depth==diedepth):
    sshaft.dief("ERROR: Error depth reached: "+diedepth)

if (not ret):
    sshaft.substep(cmd=[testproc.substep1,[],{'depth':depth, 'diedepth':diedepth }])
    
sshaft.endstep()
Esempio n. 8
0
while (len(args) > 0):
    arg = args[0]
    args = args[1:]
    if (arg == "-return"):
        ret = 1
    elif (arg == "-depth"):
        depth = args[0]
        args = args[1:]
    elif (arg == "-die"):
        diedepth = args[0]
        args = args[1:]
    else:
        sshaft.logf('LOG_WARN', "WARNING: Unrecognized argument " + arg)

if (not depth):
    depth = "testapp.py"
else:
    depth = depth + ":testapp.py"

if (depth == diedepth):
    sshaft.dief("ERROR: Error depth reached: " + diedepth)

if (not ret):
    sshaft.substep(
        cmd=[testproc.substep1, [], {
            'depth': depth,
            'diedepth': diedepth
        }])

sshaft.endstep()