projects
/
platform
/
upstream
/
libsolv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix a couple of minor problems found with cppcheck
[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