#!/bin/bash set -u declare VersionInfo='$Id: //guest/tom_tyler/sw/main/rename_edge/r#2 $ $Change: 31287 $' declare TestHome=/home/perforce/rename_edge declare RunCLITestsScript=/p4/sdp/test/bsw/run_cli_tests.sh #------------------------------------------------------------------------------ # Usage: # To see a list of test groups: # ./r ls # # To run any single test group, specify the test group name (as displayed by # ./r ls). For example, to run the Usage test group, do: # ./r Usage # # To run all tests groups, do: # ./r declare TestGroup= if [[ "${1:-}" ]]; then case "$1" in ls|list) grep -Ev '^$|^\s|^#' cli_tests.cfg |cut -d'|' -f1|uniq exit 0 ;; *) TestGroup="$1" ;; esac fi cd "$TestHome" || { echo "Could not do: cd $TestHome"; exit 1; } if [[ -n "$TestGroup" ]]; then $RunCLITestsScript -cd "$TestHome" -no_env -e -g "$TestGroup" else $RunCLITestsScript -cd "$TestHome" -no_env -e fi echo Summary: grep -E '^(PASS|FAIL) Test ' /tmp/run_cli_tests.log echo Scan for unreported errors: grep -E '^\w+:' /tmp/run_cli_tests.log | grep -Ev '^(C|Calling|Comments|DEBUG|DESC.*|Diagnostics|Error|EXAMPLE.*|Executing|Get|Hit|https|info|Installing|License|localhost|NO_OP|OPTION.*|PASS|passwd|Protections|Running|See|SUCCESS|Success|TEST_EXIT_CODE|Update|Upgraded|Upgrading|TG|Verified):' | grep -Ev '^exit: 0' | grep -v '^EXIT_CODE: 0'
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 31287 | Perforce maintenance | Updated test suite runner script 'r', added more tests. | ||
#1 | 31284 | Perforce maintenance |
Added initial files. Nothing working yet; this is just the start of development. Files included: * rename_edge_serverid.sh - Script to rename an edge ServerID. * convert_edge_to_commit.sh - Script to convert a filtered edge into a commit. * cli_test.cfg - Test Suite (using SDP run_cli_tests.sh script). * r - Test suite wrapper. * .p4ignore - Just a typical P4IGNORE file. |