ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/trunk/fbintf/testsuite/runtest.sh
(Generate patch)

Comparing ibx/trunk/fbintf/testsuite/runtest.sh (file contents):
Revision 45 by tony, Tue Dec 6 10:33:46 2016 UTC vs.
Revision 315 by tony, Thu Feb 25 11:56:36 2021 UTC

# Line 6 | Line 6
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
9 > EMPLOYEEDB=employee
10 > NEWDBNAME=$TESTOUTDIR/testsuite1.fdb
11 > NEWDBNAME2=$TESTOUTDIR/testsuite2.fdb
12   BAKFILE=$TESTOUTDIR/testsuite.gbk
13  
14   cd `dirname $0`
# Line 19 | Line 19 | fpcmake
19   make clean
20   make
21   if [ -x testsuite ]; then
22 +  if [ -n "$FIREBIRD" ]; then
23 +    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$FIREBIRD/lib"
24 +  fi
25    echo ""
26    echo "Starting Testsuite"
27    echo ""
28 <  ./testsuite -u $USERNAME -p $PASSWORD -e $EMPLOYEEDB -n $NEWDBNAME -s $NEWDBNAME2 -b $BAKFILE -o testout.log $1
28 >  ./testsuite -u $USERNAME -p $PASSWORD -e $EMPLOYEEDB -n $NEWDBNAME -s $NEWDBNAME2 -b $BAKFILE -o testout.log $@
29    echo "Comparing results with reference log"
30    echo ""
31 <  diff reference.log testout.log >diff.log
31 >  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 >  else
36 >    diff FB4reference.log testout.log >diff.log
37 >  fi
38    cat diff.log
39   else
40    echo "Unable to run test suite"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines