added scripts to run all sp tests
This commit is contained in:
parent
e10bae1dd5
commit
6d5a8d49d6
10
script/utility/filter_testcase_ids.py
Executable file
10
script/utility/filter_testcase_ids.py
Executable 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"]
|
5
script/utility/run_available_sp_tests.sh
Executable file
5
script/utility/run_available_sp_tests.sh
Executable 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
|
10
script/utility/run_list_of_tests.py
Executable file
10
script/utility/run_list_of_tests.py
Executable 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
4
script/utility/run_oper.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user