ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/branches/udr/testsuite/runtest.sh
Revision: 45
Committed: Tue Dec 6 10:33:46 2016 UTC (7 years, 4 months ago) by tony
Content type: text/x-sh
Original Path: ibx/trunk/fbintf/testsuite/runtest.sh
File size: 840 byte(s)
Log Message:
Committing updates for Release R2-0-0

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     EMPLOYEEDB=localhost:employee
10     NEWDBNAME=localhost:$TESTOUTDIR/testsuite1.fdb
11     NEWDBNAME2=localhost:$TESTOUTDIR/testsuite2.fdb
12     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     echo ""
23     echo "Starting Testsuite"
24     echo ""
25     ./testsuite -u $USERNAME -p $PASSWORD -e $EMPLOYEEDB -n $NEWDBNAME -s $NEWDBNAME2 -b $BAKFILE -o testout.log $1
26     echo "Comparing results with reference log"
27     echo ""
28     diff reference.log testout.log >diff.log
29     cat diff.log
30     else
31     echo "Unable to run test suite"
32     fi
33     rm -r testunits
34     rm testsuite
35     exit 0
36    

Properties

Name Value
svn:executable *