ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/branches/udr/testsuite/runtest.sh
Revision: 370
Committed: Wed Jan 5 14:59:15 2022 UTC (2 years, 3 months ago) by tony
Content type: text/x-sh
File size: 1192 byte(s)
Log Message:
Initialise UDR branch

File Contents

# User Rev Content
1 tony 45 #!/bin/sh
2    
3     #Test suite Configuration parameters
4     #These may be modified if needed to suite local requirements
5    
6     TESTOUTDIR=/tmp/fbintf-testsuite
7     USERNAME=SYSDBA
8     PASSWORD=masterkey
9 tony 308 EMPLOYEEDB=employee
10     NEWDBNAME=$TESTOUTDIR/testsuite1.fdb
11     NEWDBNAME2=$TESTOUTDIR/testsuite2.fdb
12 tony 45 BAKFILE=$TESTOUTDIR/testsuite.gbk
13 tony 359 if [ -z "$FPC" ]; then
14     export FPC=fpc
15     fi
16 tony 45
17     cd `dirname $0`
18     mkdir -p $TESTOUTDIR
19     chmod 777 $TESTOUTDIR
20 tony 359 export FPCDIR=/usr/lib/fpc/`$FPC -iV`
21 tony 45 fpcmake
22     make clean
23     make
24     if [ -x testsuite ]; then
25 tony 315 if [ -n "$FIREBIRD" ]; then
26     export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$FIREBIRD/lib"
27     fi
28 tony 45 echo ""
29     echo "Starting Testsuite"
30     echo ""
31 tony 315 ./testsuite -u $USERNAME -p $PASSWORD -e $EMPLOYEEDB -n $NEWDBNAME -s $NEWDBNAME2 -b $BAKFILE -o testout.log $@
32 tony 45 echo "Comparing results with reference log"
33     echo ""
34 tony 308 if grep 'ODS Major Version = 11' testout.log >/dev/null; then
35     diff FB2reference.log testout.log >diff.log
36     elif grep 'ODS Major Version = 12' testout.log >/dev/null; then
37     diff FB3reference.log testout.log >diff.log
38 tony 315 else
39     diff FB4reference.log testout.log >diff.log
40 tony 308 fi
41 tony 45 cat diff.log
42     else
43     echo "Unable to run test suite"
44     fi
45     rm -r testunits
46     rm testsuite
47     exit 0
48    

Properties

Name Value
svn:executable *