We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cdd5df commit 871c493Copy full SHA for 871c493
1 file changed
test/runtestcases.sh
@@ -1,15 +1,15 @@
1
#!/bin/bash
2
3
cmd=$1
4
-dir=$2
+dir=${2:-.}
5
6
if test -z "$cmd" -o -z "$dir"; then
7
- echo "Usage: runtestcases <cmd> <dir>";
+ echo "Usage: runtestcases <cmd> [dir]";
8
exit 1
9
fi
10
11
ex=0
12
-for tc in $(find $dir -name \*.t) ; do
+for tc in $(find $dir -name \*.t | sort) ; do
13
$cmd $tc >/dev/null
14
tex=$?
15
tcn="${tc#$dir/} .................................................."
0 commit comments