Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
cd $TRAF_HOME
. ./sqenv.sh
cd $TRAF_HOME/../sql/regress
tools/runallsb

Running an Individual Test Suite

Note : You have to run the prerequisite core test core/TEST000 before running any individual test. Note that when you run the full suite of tests (as above) , this is the first one that gets run. 

Code Block
languagebash
titleExample: Run Individual Test Suites
#run core/TEST000 if you haven't run it once already
cd $TRAF_HOME/../sql/regress/core
export rundir=$TRAF_HOME/rundir
export scriptsdir=$TRAF_HOME/../sql/regress
mkdir $rundir/core
#run the test
cd $rundir/core
$scriptsdir/core/runregr -sb TEST000
 
#run a test suite eg charsets
cd $TRAF_HOME
. ./sqenv.sh
cd $TRAF_HOME/../sql/regress
tools/runallsb charsets

Running an Individual

...

Test

If You’ve Already Run the Test Suite

...

If you have not run any regression suites so far, then you will not have the required sub directories set up. You manually create them for each suite you want to run. You will also need to run core/TEST000 before you run the test you want to run. 

 

Code Block
languagebash
cd $TRAF_HOME/../sql/regress/<suite>

# You can add the following two exports to .bashrc or .profile for convenience
export rundir=$TRAF_HOME/rundir
export scriptsdir=$TRAF_HOME/../sql/regress
mkdir $rundir
cd $rundir

# <suitename> should match the name of each directory in $scriptsdir
mkdir <suitename>

#run core/TEST000 if you haven't run it once already
cd $TRAF_HOME/../sql/regress/core
export rundir=$TRAF_HOME/rundir
export scriptsdir=$TRAF_HOME/../sql/regress
mkdir $rundir/core
#run the test
cd $rundir/core
$scriptsdir/core/runregr -sb TEST000
# run the test
cd $rundir/<suite>
$scriptsdir/<suite>/runregr -sb <test>

...