Skip to content

Commit 871c493

Browse files
committed
runtestcases.sh: order the testcases
1 parent 1cdd5df commit 871c493

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/runtestcases.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
#!/bin/bash
22

33
cmd=$1
4-
dir=$2
4+
dir=${2:-.}
55

66
if test -z "$cmd" -o -z "$dir"; then
7-
echo "Usage: runtestcases <cmd> <dir>";
7+
echo "Usage: runtestcases <cmd> [dir]";
88
exit 1
99
fi
1010

1111
ex=0
12-
for tc in $(find $dir -name \*.t) ; do
12+
for tc in $(find $dir -name \*.t | sort) ; do
1313
$cmd $tc >/dev/null
1414
tex=$?
1515
tcn="${tc#$dir/} .................................................."

0 commit comments

Comments
 (0)