strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7dc677
)
testing: Support running multiple tests with * as wildcard (e.g. ikev2/ocsp-*)
author
Tobias Brunner
<tobias@strongswan.org>
Fri, 7 Jul 2017 07:23:14 +0000
(09:23 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Fri, 7 Jul 2017 07:23:14 +0000
(09:23 +0200)
testing/do-tests
patch
|
blob
|
history
diff --git
a/testing/do-tests
b/testing/do-tests
index
60c34c7
..
230403b
100755
(executable)
--- 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