#!/bin/bash declare -i OverallReturnStatus=0 declare -i ExitCode= declare Version=3.5.1 cd ${P4BBI_HOME:-/p4/p4bbi} || exit 1 source env.sh P4="$P4BIN -u p4import -p $TestP4PORT" cd sample_cfg || exit 1 echo -e "Started $0 v$Version at $(date)." $P4BBI_HOME/test/start_p4d.sh reset || exit 1 Cmd="$P4BBI_SCRIPT -R -J -c FGS.Classic.bbi.cfg -P $PWD/p4config.test -L off $*" echo -e "Running: $Cmd\n" $Cmd ExitCode=$? echo TEST_EXIT_CODE=$ExitCode OverallReturnStatus=$((OverallReturnStatus+ExitCode)) Cmd="$P4BBI_SCRIPT -R -J -c FGS.Streams.bbi.cfg -P $PWD/p4config.test -L off $*" echo -e "Running: $Cmd\n" $Cmd ExitCode=$? echo TEST_EXIT_CODE=$ExitCode OverallReturnStatus=$((OverallReturnStatus+ExitCode)) Cmd="$P4BBI_SCRIPT -J -c perl6-examples.bbi.cfg -P $PWD/p4config.test -L off $*" echo -e "Running: $Cmd\n" $Cmd ExitCode=$? echo TEST_EXIT_CODE=$ExitCode OverallReturnStatus=$((OverallReturnStatus+ExitCode)) Cmd="$P4BBI_SCRIPT -c SymlinkRefactoring.bbi.cfg -P $PWD/p4config.test -L off $*" echo -e "Running: $Cmd\n" $Cmd ExitCode=$? echo TEST_EXIT_CODE=$ExitCode OverallReturnStatus=$((OverallReturnStatus+ExitCode)) # For demo convenience, create a workspace. echo -e "Client:\tp4import_ws\n\nOwner:\tp4import\n\nDescription:\n\tCreated by p4import.\n\nRoot:\t$PWD/ws\n\nOptions:\tnoallwrite clobber nocompress unlocked modtime rmdir\n\nSubmitOptions:\tleaveunchanged\n\nLineEnd:\tlocal\n\nView:\n\t//ImportTest/... //p4import_ws/...\n\n" | $P4 -s client -i echo -e "That took $(($SECONDS/3600)) hours $(($SECONDS%3600/60)) minutes $(($SECONDS%60)) seconds.\n"
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 18458 | C. Thomas Tyler |
Added new BBI config file for testing SymlinkRefactoring.bbi.cfg. Added new test baselines. Added rts.sh wrapper to run_test_suite.sh, and tweaked logging for the test suite to generate just one log file. |
||
#4 | 18410 | C. Thomas Tyler |
Implemented 'CMD:' prefix for baseline definintions, and added sample config file to illustrate pulling from Git Hub. Updated BBIJunkFiles.txt to exclude import of .git foldres. Added test case and updatd test suite to call it. |
||
#3 | 18402 | C. Thomas Tyler |
bbi.sh v3.5.1: Added support for BRANCH_SPEC, DEPOT_SPEC, and STREAM_SPEC actions, which allow imports to use hand-crafted spec files during imports. This allows the BBI import process to simulate the evolution of stream specs over time, e.g. to reflect reparenting, and to account for things like non-branching files and CBD workflows that use sophisticated, hand-crafted stream specs. The required BBI Config file version has been updated from 3.2 to 3.5. Test suite has been updated to test new functionality. |
||
#2 | 18401 | C. Thomas Tyler |
bbi.sh v3.5.0: Fixed '-T' flag to run test suite, which now just calls the separate run_test_suite.sh script. |
||
#1 | 18399 | C. Thomas Tyler | Moved test suite driver script into test directory. | ||
//guest/perforce_software/p4bbi/dev/run_test_suite.sh | |||||
#2 | 18378 | C. Thomas Tyler |
Added hack to env.sh to support Mac OSX, which doesn't (and accoring to blogs, won't) use bash v4.x. Updated test suite so it works on Mac. |
||
#1 | 18178 | C. Thomas Tyler | Added test suite wrapper script. |