@@ -25,7 +25,8 @@ Options:
25
25
CLASSNAME
26
26
--timeout=TIMEOUT cwltest timeout in seconds.
27
27
--verbose Print the cwltest invocation and pass --verbose to
28
- cwltest
28
+ cwltest (or if running the "--self" check, print the
29
+ schema-salad-tool invocation)
29
30
--self Test CWL and test .cwl files themselves. If this flag
30
31
is given, any other flags will be ignored.
31
32
--badgedir=DIRNAME Specifies the directory to store JSON files for badges.
@@ -116,15 +117,13 @@ if [ -n "${SELF}" ]; then
116
117
fi
117
118
# This is how CWL should be written.
118
119
DEFINITION=./CommonWorkflowLanguage.yml
119
- # Let's test each files
120
- find tests -type f -name " *.cwl" | \
121
- while read -r target;
122
- do
123
- schema-salad-tool ${DEFINITION} " ${target} " --quiet || {
124
- echo " [INVALID] ${target} "
125
- exit 1
126
- }
127
- done
120
+ QUIET=--quiet
121
+ if [ " $VERBOSE " = " --verbose" ]; then
122
+ QUIET=
123
+ fi
124
+ # Let's test all the files at once as that is faster
125
+ schema-salad-tool ${QUIET} ${DEFINITION} \
126
+ $( find tests -type f -name " *.cwl" ) || exit 1
128
127
exit 0
129
128
fi
130
129
@@ -162,7 +161,7 @@ runtest() {
162
161
if [ " $PLATFORM " = " Linux" ]; then
163
162
runtest " $( readlink -f " $runner " ) "
164
163
elif [ " $PLATFORM " = " Darwin" ]; then
165
- runtest $runner
164
+ runtest " $runner "
166
165
else
167
166
runtest " $( greadlink -f " $runner " ) "
168
167
fi
0 commit comments