- #!/bin/bash
- set -u
- declare VersionInfo='$Id: //guest/tom_tyler/sw/main/install_sdp/dev/bin/r#15 $ $Change: 31283 $'
- #------------------------------------------------------------------------------
- # 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 /opt/perforce/dev/bin || { echo "Could not do: cd /opt/perforce/dev/bin"; exit 1; }
- # When starting a new test run, which could be a single test group or the entire set,
- # first blast the /root/install_sdp directory which will contain logs from prior
- # runs. All install_sdp.sh script logs from the current run appear in this folder.
- rm -rf /root/install_sdp
- if [[ -n "$TestGroup" ]]; then
- /opt/perforce/dev/sdp/test/bsw/run_cli_tests.sh -cd /opt/perforce/dev/bin -no_env -e -g "$TestGroup"
- else
- /opt/perforce/dev/sdp/test/bsw/run_cli_tests.sh -cd /opt/perforce/dev/bin -no_env -e
- fi
- echo Summary:
- grep -E '^(PASS|FAIL) Test ' /tmp/run_cli_tests.log
- ### TO DO: Consider moving this logic to scan for unreported errors into the run_cli_tests.sh script itself.
- 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 | |
---|---|---|---|---|---|
#15 | 31283 | C. Thomas Tyler | Refined scan for unreported errors. | about a month ago | |
#14 | 31266 | C. Thomas Tyler | Refined unreported error scan. | about a month ago | |
#13 | 31238 | C. Thomas Tyler | Enhanced unreported error scan. | about a month ago | |
#12 | 31237 | C. Thomas Tyler |
Change filetype, +k, and added keyword tags. Enhanced scan for unreported errors. |
about a month ago | |
#11 | 30798 | C. Thomas Tyler | Added usage comment block. | 4 months ago | |
#10 | 30777 | C. Thomas Tyler | Refined scan for unreported errors. | 4 months ago | |
#9 | 30772 | C. Thomas Tyler | Adjusted to blast install directory for each test run. | 4 months ago | |
#8 | 30764 | C. Thomas Tyler | Refined scan for unreported errors. | 4 months ago | |
#7 | 30761 | C. Thomas Tyler | Improved scanning for unreported errors to eliminate false positives. | 4 months ago | |
#6 | 30749 | C. Thomas Tyler | Added test group support. | 4 months ago | |
#5 | 30737 | C. Thomas Tyler | Adjusted scan for unreported errors. | 4 months ago | |
#4 | 30724 | C. Thomas Tyler | Revised error scan to show only unreported errors. | 4 months ago | |
#3 | 30706 | C. Thomas Tyler |
Adapted to directory change. Enhanced error scan. |
4 months ago | |
#2 | 30704 | C. Thomas Tyler | Added summary and error scan of log. | 4 months ago | |
#1 | 30693 | C. Thomas Tyler | Added dev utils and tests. | 5 months ago |