ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/branches/udr/testsuite/runtest.sh
Revision: 315
Committed: Thu Feb 25 11:56:36 2021 UTC (3 years, 2 months ago) by tony
Content type: text/x-sh
Original Path: ibx/trunk/fbintf/testsuite/runtest.sh
File size: 1148 byte(s)
Log Message:
Updated for IBX 4 release

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    
14     cd `dirname $0`
15     mkdir -p $TESTOUTDIR
16     chmod 777 $TESTOUTDIR
17     export FPCDIR=/usr/lib/fpc/`fpc -iV`
18     fpcmake
19     make clean
20     make
21     if [ -x testsuite ]; then
22 tony 315 if [ -n "$FIREBIRD" ]; then
23     export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$FIREBIRD/lib"
24     fi
25 tony 45 echo ""
26     echo "Starting Testsuite"
27     echo ""
28 tony 315 ./testsuite -u $USERNAME -p $PASSWORD -e $EMPLOYEEDB -n $NEWDBNAME -s $NEWDBNAME2 -b $BAKFILE -o testout.log $@
29 tony 45 echo "Comparing results with reference log"
30     echo ""
31 tony 308 if grep 'ODS Major Version = 11' testout.log >/dev/null; then
32     diff FB2reference.log testout.log >diff.log
33     elif grep 'ODS Major Version = 12' testout.log >/dev/null; then
34     diff FB3reference.log testout.log >diff.log
35 tony 315 else
36     diff FB4reference.log testout.log >diff.log
37 tony 308 fi
38 tony 45 cat diff.log
39     else
40     echo "Unable to run test suite"
41     fi
42     rm -r testunits
43     rm testsuite
44     exit 0
45    

Properties

Name Value
svn:executable *