test_script-recover_correct_ckp_2.sh #1

  • //
  • guest/
  • perforce_software/
  • sdp/
  • dev/
  • test/
  • bsw/
  • test_script-recover_correct_ckp_2.sh
  • View
  • Commits
  • Open Download .zip Download (800 B)
#!/bin/bash
set -u

declare ThisScript="${0##*/}"
declare TestID=${1:-UNKNOWN TEST ID}
declare -i ErrorCount=0
declare -i Debug=${SDP_DEBUG:-0}

function msg () { echo -e "$*"; }
function dbg () { [[ "$Debug" -eq 0 ]] || msg "DEBUG: $*"; }
function errmsg () { msg "\\nError: ${1:-Unknown Error}\\n"; ErrorCount+=1; }
function bail () { errmsg "${1:-Unknown Error}"; exit "$ErrorCount"; }

msg "Test $TestID - Change to parallel checkpoint, recover correct checkpoint."

# Setup: Create site/config dir if needed
mkdir -p /p4/common/site/config

msg "Configure parallel checkpoint on commit."

{
   echo export DO_PARALLEL_CHECKPOINTS=4
   echo KEEPCKPS=2
   echo KEEPJNLS=2
   echo KEEPCKPS=2
} > /p4/common/site/config/p4_1.vars.local

msg "Take daily checkpoint on commit."
daily_checkpoint.sh 1

# Change User Description Committed
#3 30628 C. Thomas Tyler Added version id to all tests.

Added check for 'syntax error' and 'unbound variable' to all logs
involved in all tests, local and remote.
#2 30626 C. Thomas Tyler Refined test harness logic and added more tests.
#1 30623 C. Thomas Tyler Added feature for scripted test to run addtional checks from an earlier
execution of a script.

Added more tests.