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