I use the commands in my attached .bashrc: ftdebug and ftrelease

Dan Steinicke wrote:
To aid in our on going efforts to improve the functional tests I have been ask to collect the methods people are currently using to run them. Could everyone who runs functional tests please reply to this email with a brief explanation of how you run the tests.
For myself I usually run from the console like this:
debug/RunChandler -ceT --catch=test
or occasionally tools/do_tests.sh -f
or from wing by setting chandler.py as the main debug file and using the run arguments: -cT --catch=never

thanks for your help
Dan
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev
export BUILD_ROOT="/cygdrive/d/John/OSAF/external"
export WXWIN="/cygdrive/d/John/wxWidgets"
export WXDIR="/cygdrive/d/John/wxWidgets"

# Edit these setting - use '' or '1' for each.  There should only be one '1'
export ONWINDOWS='1'
export ONMAC=''
export ONLINUX=''

# Set to '1' for anonymous access to source
# comment out the line if you have an svn account
export SVN_ANONYMOUS='1'

# To run the launch chandler unit test
export CHANDLER_LAUNCH_TEST=1

# Put in the location of your OSAF working directory here:
export OSAF="/cygdrive/d/John/osaf"

# Here's the path for your main work at the trunk of the tree:
export TRUNK="$OSAF"

# Put in the tag used to identify the Branch:
#export BRANCHTAG='CHANDLER_DEMO_D_2005'

# Here's the path for branches, if working on a branch:
#export BRANCHES="/cygdrive/d/John/osafb"

export OPTIMIZE=\ 

if test -d "$TRUNK"; then
    echo "main trunk at " $TRUNK
else
    echo "making " $TRUNK
    mkdir $TRUNK
fi

if test -z $BRANCHES; then
    echo "no branches set"
else
    if test -d "$BRANCHES/$BRANCHTAG"; then
        echo "branches for $BRANCHTAG at " $BRANCHES/$BRANCHTAG
    else
        if test ! -d "$BRANCHES"; then
                echo "making branches directory at " $BRANCHES
                mkdir $BRANCHES
        fi
        echo "making branch for $BRANCHTAG at " $BRANCHES/$BRANCHTAG
        mkdir $BRANCHES/$BRANCHTAG
    fi
fi

# make sure $PROFILEDIR exists
if test -z $BRANCHES; then
    echo "no PROFILEDIR"
else
    if test ! -d "$PROFILEDIR"; then
        echo "making " $PROFILEDIR
        mkdir $PROFILEDIR
    fi
fi

if test -z $ONWINDOWS; then
    export DOTBAT=''
else
    export DOTBAT='.bat'
fi

if test -z $SVNCHANDLER; then
    export SVNCHANDLER='svn.osafoundation.org'
fi

# To use a different SVN user, get the username from $SVNUSER
if test ! -z $SVNUSER; then
    export SVNUSERARG=$SVNUSER@
else
    export SVNUSERARG=''
fi

# set up SVN_ACCESS to access either anonymous or the SVNUSER through svn+ssh
if test -z $SVN_ACCESS; then
    if test -z $SVN_ANONYMOUS; then
        export SVN_ACCESS="svn+ssh://$SVNUSERARG$SVNCHANDLER/svn/chandler"
    else
        export SVN_ACCESS='http://'"$SVNCHANDLER/chandler"
    fi
fi

export FT_PARCELPATH=`cygpath -aw $TRUNK/chandler/tools/cats/DataFiles`
export FT_SUITE_PATH=`cygpath -aw $TRUNK/chandler/tools/cats/Functional`
export FT_PERF_PATH=`cygpath -aw 
$TRUNK/chandler/tools/QATestScripts/Performance`

# chandler aliases
alias getchandler='cd $TRUNK; svn co $SVN_ACCESS/trunk/chandler chandler; cd 
chandler; make install'
alias gethardhat='cd $TRUNK; svn co $SVN_ACCESS/trunk/hardhat hardhat'
alias getinternal='cd $TRUNK; svn co $SVN_ACCESS/trunk/internal internal'
alias wxdemo='cd $TRUNK/internal/wx/wxPython/demo; 
$TRUNK/chandler/release/bin/python demo.py'
alias unittests='cd $TRUNK/chandler;export UNIT_TESTING=True; 
../hardhat/hardhat.py -d -t'

alias ftdebug='cd $TRUNK/chandler; export 
PARCELPATH=$FT_PARCELPATH;./debug/RunChandler.bat --stderr --catch=never 
--create --wing --chandlerTestLogfile FunctionalTestSuite.log -f 
$FT_SUITE_PATH/FunctionalTestSuite.py'

alias ftrelease='cd $TRUNK/chandler; export 
PARCELPATH=$FT_PARCELPATH;./release/RunChandler.bat --stderr --catch=never 
--create --wing --chandlerTestLogfile FunctionalTestSuite.log -f 
$FT_SUITE_PATH/FunctionalTestSuite.py'

alias perf='cd $TRUNK/chandler; export 
PARCELPATH=$FT_PERF_PATH;./release/RunChandler.bat --stderr --catch=never 
--create --wing -f $FT_PERF_PATH/PerfLargeDataJumpWeek.py'

alias do_tests='cd $TRUNK/chandler; tools/do_tests.sh -f -u -p'

alias do_test='cd $TRUNK/chandler; tools/do_tests.sh -t 
PerfLargeDataJumpWeek.py'

alias hh='$TRUNK/hardhat/hardhat.py'
alias updatechandler='cd $TRUNK/chandler; svn up; make install; clean'
alias updatehardhat='cd $TRUNK/hardhat; svn up'
alias updaterelease='cd $TRUNK/chandler; make install; clean'
alias updatedebug='cd $TRUNK/chandler; make DEBUG=1 install; clean'
alias updateruntime='cd $TRUNK/chandler; make install; make DEBUG=1 install; 
clean'
alias runrelease='cd $TRUNK/chandler; ./release/RunChandler$DOTBAT --stderr'
alias rundebug='cd $TRUNK/chandler; ./debug/RunChandler$DOTBAT --stderr'
alias wingdebug='cd $TRUNK/chandler; ./debug/RunChandler$DOTBAT --wing --stderr'
alias clean='rm -rf "$PROFILEDIR/"__repository__ "$PROFILEDIR/"chandler.log 
"$PROFILEDIR/"*.default'

# Aliases for working on a branch
# Note that these aliases don't automatically 'clean' or make install when we 
update on the
#  branch - you should do that manually.
alias getbranch='cd $BRANCHES/$BRANCHTAG; svn co 
$SVN_ACCESS/branches/$BRANCHTAG/chandler chandler; cd chandler; make install'
alias updatebranch='cd $BRANCHES/$BRANCHTAG/chandler; svn up'
alias runbranch='cd $BRANCHES/$BRANCHTAG/chandler; ./release/RunChandler$DOTBAT 
--stderr'
alias gobranch='cd $BRANCHES/$BRANCHTAG/chandler'
alias gomain='cd $TRUNK/chandler'

#add cygwin /usr/bin to the path for user scripts like pgrep
export PATH="$PATH":~

if test ! -z $ONMAC; then
    # for Mac, just open the log file with the right application (Console)
    alias taillog='open "$PROFILEDIR/chandler.log"'
else
    alias taillog='cd "$PROFILEDIR"; tail -f chandler.log'
fi

if test -n $ONMAC; then
    alias o='open -a /Applications/TextEdit.app $1'
    alias wing='open -a /Applications/WingIDE-Professional-2.0.2/WingIDE.app $1'
fi

cd $TRUNK
echo "done."
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Open Source Applications Foundation "chandler-dev" mailing list
http://lists.osafoundation.org/mailman/listinfo/chandler-dev

Reply via email to