manual_test_env.sh #1

  • //
  • cbd/
  • main/
  • test/
  • manual_test_env.sh
  • View
  • Commits
  • Open Download .zip Download (648 B)
# Usage:
# 
# Source this file when doing manual testing of CBD.  This is similar to auto_test_cbd.sh in
# that it prepares for CBD testing, but values here are optimized for manual testing, which
# is slightly different than the environment on a CI Build box.

echo -e "Ensuring SDP def for 'LOGS' and 'P4BIN' are unset.\nCBD logging optimized for manual testing."
unset LOGS
unset P4BIN

export CBD_HOME=/p4/common/bin/cbd

echo -e "\nDefining aliases 'r' and 'r2' for testing."
alias r='$CBD_HOME/test/test_cbd.sh -S -I -d /p4/common/bin/cbd/test/shared -L log'
alias r2='$CBD_HOME/test/test_cbd.sh -S -d /p4/common/bin/cbd/test/shared -L log'
# Change User Description Committed
#1 21633 C. Thomas Tyler Populate -o //guest/perforce_software/cbd/main/...
//cbd/main/....
//guest/perforce_software/cbd/main/test/manual_test_env.sh
#2 15273 C. Thomas Tyler Copy Up using 'p4 copy -r -b perforce_software-cbd-ntx64'.
Stabilization changes.
Test suite enhancements.
#1 15009 C. Thomas Tyler Promoted CBD development work to main from dev.
//guest/perforce_software/cbd/dev/test/manual_test_env.sh
#9 14992 C. Thomas Tyler Simplified.
#8 14950 C. Thomas Tyler Tweaked manual setup to test from SDP location for CBD.
#7 14936 C. Thomas Tyler Removed extranneous logs dir cleanup & reset, as this is
handled in test_cbd.sh.
#6 14911 C. Thomas Tyler Further tweaked test suite to look hard for the config data.
Convenience tweak to manual test environment script.
#5 14862 C. Thomas Tyler Added check for Python in PATH.
#4 14861 C. Thomas Tyler Corrected CBD_HOME target path.
#3 14858 C. Thomas Tyler Enhanced for preliminary bootstrap operation, before /tmp/sd exists.
#2 14844 C. Thomas Tyler Overhauled regression test suite.

Added various command line tests.

Enhanced test suite to allow entries in the test data file to specify
alternate user and workspaces (differing from defaults defined in
the test test configuration files, test_cbd.*.cfg) for certain
tests.

Added new testing method, broker input testing, to augment existing
       command line testing.

       This test method simulates having 'p4d' call the CBD broker sync
       script by feeding handcrafted/simulated broker input files to the CBD
       engine, simulating the way p4d uses stdin to feed the broker
       parameters when a user makes a request.

       This enables more diverse testing and better simulation of Window
       and P4V-side testing.
#1 14199 C. Thomas Tyler Added test suite.