diff options
author | Tobias Brunner <tobias@strongswan.org> | 2017-07-07 09:23:14 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2017-07-07 09:23:14 +0200 |
commit | 49917f002829f2d0d9062f69461ac04ab14f1b6e (patch) | |
tree | ab4840ff6aa280c5faab58c4c34485181fe275f9 | |
parent | d7dc677ee5727617d8c8fc43754786527717a884 (diff) | |
download | strongswan-49917f002829f2d0d9062f69461ac04ab14f1b6e.tar.bz2 strongswan-49917f002829f2d0d9062f69461ac04ab14f1b6e.tar.xz |
testing: Support running multiple tests with * as wildcard (e.g. ikev2/ocsp-*)
-rwxr-xr-x | testing/do-tests | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/testing/do-tests b/testing/do-tests index 60c34c798..230403b9f 100755 --- a/testing/do-tests +++ b/testing/do-tests @@ -207,12 +207,16 @@ for SUBDIR in $TESTS do SUBTESTS="`basename $SUBDIR`" - if [ $SUBTESTS = $SUBDIR ] - then - SUBTESTS="`ls $DEFAULTTESTSDIR/$SUBDIR`" - else - SUBDIR="`dirname $SUBDIR`" - fi + if [ $SUBTESTS = $SUBDIR ] + then + SUBTESTS="`ls $DEFAULTTESTSDIR/$SUBDIR`" + else + if [[ $SUBTESTS == *'*'* ]] + then + SUBTESTS="`basename -a $DEFAULTTESTSDIR/$SUBDIR`" + fi + SUBDIR="`dirname $SUBDIR`" + fi if [ ! -d $TODAYDIR/$SUBDIR ] then |