test_script-recover_correct_ckp_1.sh #1

  • //
  • guest/
  • perforce_software/
  • sdp/
  • dev/
  • test/
  • bsw/
  • test_script-recover_correct_ckp_1.sh
  • View
  • Commits
  • Open Download .zip Download (794 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 - Start with serial checkpoint, recover correct checkpoint."

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

msg "Configure serial checkpoint on commit."

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

msg "Take live checkpoint on commit."
live_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.
//guest/perforce_software/sdp/dev/test/bsw/test_1-recover_correct_ckp.sh
#1 30622 C. Thomas Tyler Added files for initial SDP BSW test suite.