#!/bin/bash set -u function msg () { echo -e "$*"; } function cmd () { echo -e "Executing: $*"; $*; return $?; } function bail () { echo -e "\nError: ${1:-Unkown Error}\n"; exit ${2:-1}; } export TestID=${1:-1} export P4BIN=${2:-p4} export P4PORT=${3:-1666} export P4USER=${4:-bruno} export P4CLIENT=TestWS.$TestID export P4CONFIG=/tmp/.p4config.$TestID declare -i ExitCode=0 declare TmpFile=/tmp/tmpFile.$TestID.$$.$RANDOM declare RootDir=/tmp/$P4CLIENT declare SSTFile=DeepThought-Components.cbdsst declare MainlineStream=//DeepThought/Components/main declare DevStream=//DeepThought/Components/dev echo -e "Running Test $TestID\n$0 $*\n" /bin/rm -f "$P4CONFIG" echo -e "P4PORT=$P4PORT\nP4USER=$P4USER\nP4CLIENT=$P4CLIENT\nP4IGNORE=.p4ignore\nP4TICKETS=$PWD/.p4tickets\nP4ENVIRO=$PWD/.p4enviro\nP4TRUST=$PWD/.p4trust" > $P4CONFIG echo -e "Wrote this P4CONFIG file $P4CONFIG:\n$(cat $P4CONFIG)" echo -e "Client: $P4CLIENT\n\nOwner: bruno\n\nRoot: $RootDir\n\nStream: $DevStream\n\n" > $TmpFile $P4BIN -s client -i < $TmpFile || bail "Failed to create workspace [$P4CLIENT]." msg "Sync specifying stream root $DevStream/... in depot with StreamDepth>1." cmd $P4BIN -s -c $P4CLIENT sync -q $DevStream/... ||\ bail "Failed to sync specifying $DevStream/... in workspace $P4CLIENT." exit 0
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 19429 | C. Thomas Tyler | Released CBD/MultiArch/2016.2/19425 (2016/05/17). | ||
//guest/perforce_software/cbd/dev/test/shared/scripted_test_7.sh | |||||
#1 | 19424 | C. Thomas Tyler |
Added Tests 42 and 43 for sync using StreamDepth>1 and a stream spec using an import entry, including importing from a second stream depot, //tools, with StreamDepth>1. Test 42 succeeds (as expected), and test 43 fails (also as expected, until the fix goes in). |