Skip to content

Commit 6d5a8d4

Browse files
committed
added scripts to run all sp tests
1 parent e10bae1 commit 6d5a8d4

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

script/utility/filter_testcase_ids.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env python
2+
# extract test case IDs from json-formatted list (`sp_testdrv.py -l` or `idp_testdrv.py -l`)
3+
# usage:
4+
# sp_testdrv.py -l | filter_testcase_ids.py
5+
__author__ = 'rhoerbe'
6+
7+
import json, sys
8+
jdata = json.load(sys.stdin)
9+
for k in jdata:
10+
print k["id"]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
# run all tests that are availabe in sp_test
3+
/usr/bin/env python ./tt_config.py > tt_config.json
4+
mkdir -p log
5+
sp_testdrv.py -l | ./filter_testcase_ids.py | sort | ./run_list_of_tests.py

script/utility/run_list_of_tests.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env python
2+
3+
import fileinput
4+
from subprocess import call
5+
6+
for line in fileinput.input():
7+
cmd = "./run_oper.sh " + line.rstrip()
8+
print "executing " + cmd
9+
call(cmd, shell=True)
10+

script/utility/run_oper.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
4+
sp_testdrv.py -H -d -Y -J tt_config.json -c td_config $1 2> log/$1.log

0 commit comments

Comments
 (0)