Imported Upstream version 0.6.8
[platform/upstream/libsolv.git] / test / runtestcases
1 #!/bin/bash
2
3 cmd=$1
4 dir=$2
5
6 if test -z "$dir"; then
7   echo "Usage: runtestcases <cmd> <dir>";
8   exit 1
9 fi
10
11 ex=0
12 for tc in $(find $dir -name \*.t) ; do
13   if ! $cmd $tc > /dev/null ; then
14     echo "failed test: ${tc#$dir/}"
15     ex=1
16   fi
17 done
18 exit $ex