diff options
author | rhoerbe <rainer@hoerbe.at> | 2014-07-11 11:49:08 +0200 |
---|---|---|
committer | rhoerbe <rainer@hoerbe.at> | 2014-07-11 11:49:08 +0200 |
commit | 6d5a8d49d6db0dc77b106b6d6aeae8d20be0d1a7 (patch) | |
tree | 7dd1f7734263bef916f553c035ffedbd7597cb88 /script | |
parent | e10bae1dd55f6e77fd6457fa55d220113f74ee56 (diff) | |
download | pysaml2-6d5a8d49d6db0dc77b106b6d6aeae8d20be0d1a7.tar.gz |
added scripts to run all sp tests
Diffstat (limited to 'script')
-rwxr-xr-x | script/utility/filter_testcase_ids.py | 10 | ||||
-rwxr-xr-x | script/utility/run_available_sp_tests.sh | 5 | ||||
-rwxr-xr-x | script/utility/run_list_of_tests.py | 10 | ||||
-rwxr-xr-x | script/utility/run_oper.sh | 4 |
4 files changed, 29 insertions, 0 deletions
diff --git a/script/utility/filter_testcase_ids.py b/script/utility/filter_testcase_ids.py new file mode 100755 index 00000000..a7e59c16 --- /dev/null +++ b/script/utility/filter_testcase_ids.py @@ -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"] diff --git a/script/utility/run_available_sp_tests.sh b/script/utility/run_available_sp_tests.sh new file mode 100755 index 00000000..fcadc5b7 --- /dev/null +++ b/script/utility/run_available_sp_tests.sh @@ -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 diff --git a/script/utility/run_list_of_tests.py b/script/utility/run_list_of_tests.py new file mode 100755 index 00000000..286d0c50 --- /dev/null +++ b/script/utility/run_list_of_tests.py @@ -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) + diff --git a/script/utility/run_oper.sh b/script/utility/run_oper.sh new file mode 100755 index 00000000..51aca3fc --- /dev/null +++ b/script/utility/run_oper.sh @@ -0,0 +1,4 @@ +#!/bin/sh + + +sp_testdrv.py -H -d -Y -J tt_config.json -c td_config $1 2> log/$1.log |