Switch to unified view

a/tests/shared.sh b/tests/shared.sh
1
# @(#$Id: shared.sh,v 1.4 2009-01-06 18:47:33 dockes Exp $  (C) 2006 J.F.Dockes
1
# @(#$Id: shared.sh,v 1.4 2009-01-06 18:47:33 dockes Exp $  (C) 2006 J.F.Dockes
2
3
# shared code and variables for all tests
2
# shared code and variables for all tests
4
3
5
RECOLL_CONFDIR=/home/dockes/projets/fulltext/testrecoll/config
4
RECOLL_TESTDATA=/home/dockes/projets/fulltext/testrecoll
5
6
RECOLL_CONFDIR=${RECOLL_TESTDATA}/config
6
export RECOLL_CONFDIR
7
export RECOLL_CONFDIR
7
8
8
# Call this with the script's $0 as argument
9
# Call this with the script's $0 as argument
9
initvariables() {
10
initvariables() {
10
  tstdata=/home/dockes/projets/fulltext/testrecoll        
11
  tstdata=${RECOLL_TESTDATA}
11
  toptmp=${TMPDIR:-/tmp}/recolltsttmp
12
  toptmp=${TMPDIR:-/tmp}/recolltsttmp
12
  myname=`basename $1 .sh`
13
  myname=`basename $1 .sh`
13
  mystderr=$toptmp/${myname}.err
14
  mystderr=$toptmp/${myname}.err
14
  mystdout=$toptmp/${myname}.out
15
  mystdout=$toptmp/${myname}.out
15
  mydiffs=$toptmp/${myname}.diffs
16
  mydiffs=$toptmp/${myname}.diffs