]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
runtestcases.sh: order the testcases
authorMichael Schroeder <mls@suse.de>
Thu, 10 Mar 2022 13:23:34 +0000 (14:23 +0100)
committerMichael Schroeder <mls@suse.de>
Thu, 10 Mar 2022 13:23:34 +0000 (14:23 +0100)
test/runtestcases.sh

index 3d736630e3883d90e4a362479685f1e6ea1112b0..40f60db9a49255a95f9a768d444b2f122a854cea 100755 (executable)
@@ -1,15 +1,15 @@
 #!/bin/bash
 
 cmd=$1
-dir=$2
+dir=${2:-.}
 
 if test -z "$cmd" -o -z "$dir"; then
-  echo "Usage: runtestcases <cmd> <dir>";
+  echo "Usage: runtestcases <cmd> [dir]";
   exit 1
 fi
 
 ex=0
-for tc in $(find $dir -name \*.t) ; do
+for tc in $(find $dir -name \*.t | sort) ; do
   $cmd $tc >/dev/null
   tex=$?
   tcn="${tc#$dir/} .................................................."