Switch to unified view

a/tests/runtests.sh b/tests/runtests.sh
...
...
8
. shared.sh
8
. shared.sh
9
9
10
if test ! x$reroot = x ; then
10
if test ! x$reroot = x ; then
11
    rerootResults
11
    rerootResults
12
fi
12
fi
13
14
iscmd()
15
{
16
    cmd=$1
17
    case $cmd in
18
    */*)
19
  if test -x $cmd -a ! -d $cmd ; then return 0; else return 1; fi ;;
20
    *)
21
      oldifs=$IFS; IFS=":"; set -- $PATH; IFS=$oldifs
22
      for d in $*;do test -x $d/$cmd -a ! -d $d/$cmd && \
23
          iscmdresult=$d/$cmd && return 0;done
24
      return 1 ;;
25
    esac
26
}
27
28
checkcmds()
29
{
30
    result=0
31
    for cmd in $*;do
32
      if iscmd $cmd 
33
      then 
34
        echo $cmd is $iscmdresult
35
      else 
36
        echo $cmd not found
37
        result=1
38
      fi
39
    done
40
    return $result
41
}
42
43
checkcmds recollq recollindex pxattr xadump || exit 1
13
44
14
makeindex() {
45
makeindex() {
15
  echo "Zeroing Index" 
46
  echo "Zeroing Index" 
16
  rm -rf $RECOLL_CONFDIR/xapiandb $RECOLL_CONFDIR/aspdict.*.rws
47
  rm -rf $RECOLL_CONFDIR/xapiandb $RECOLL_CONFDIR/aspdict.*.rws
17
  echo "Indexing" 
48
  echo "Indexing"