added scripts to run all sp tests

This commit is contained in:
rhoerbe 2014-07-11 11:49:08 +02:00
parent e10bae1dd5
commit 6d5a8d49d6
4 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/usr/bin/env python
# extract test case IDs from json-formatted list (`sp_testdrv.py -l` or `idp_testdrv.py -l`)
# usage:
# sp_testdrv.py -l | filter_testcase_ids.py
__author__ = 'rhoerbe'
import json, sys
jdata = json.load(sys.stdin)
for k in jdata:
print k["id"]

View File

@ -0,0 +1,5 @@
#!/bin/sh
# run all tests that are availabe in sp_test
/usr/bin/env python ./tt_config.py > tt_config.json
mkdir -p log
sp_testdrv.py -l | ./filter_testcase_ids.py | sort | ./run_list_of_tests.py

View File

@ -0,0 +1,10 @@
#!/usr/bin/env python
import fileinput
from subprocess import call
for line in fileinput.input():
cmd = "./run_oper.sh " + line.rstrip()
print "executing " + cmd
call(cmd, shell=True)

4
script/utility/run_oper.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
sp_testdrv.py -H -d -Y -J tt_config.json -c td_config $1 2> log/$1.log