#!/bin/bash
set -u
declare TestHome=/p4/sdp/test/bsw
#------------------------------------------------------------------------------
# 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 2
;;
*)
TestGroup="$1"
;;
esac
fi
cd "$TestHome" || { echo -e "\\nError: Could not do: cd $TestHome"; exit 1; }
if [[ -n "$TestGroup" ]]; then
"$TestHome/run_cli_tests.sh" -cd /p4/sdp/test/bsw -no_env -e -g "$TestGroup"
else
"$TestHome/run_cli_tests.sh" -cd /p4/sdp/test/bsw -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 '^(BAD|Bogus|C|Calling|Comments|DEBUG|DESC.*|Diagnostics|Error|EXAMPLE.*|Executing|ExitCode|Get|GOOD|Hit|https|info|INFO|LOGGING|NO_OP|NOTIFICATIONS|OPTION.*|p4d_edge_syd|p4d_fs_nyc|p4d_ha_bos|p4d_ha_edge_syd|PASS|Protections|Result|Running|See|ServerID|Success|SUCCESS|Summary|TEST_EXIT_CODE|text|TIMING|Update|TG|Verified):' | grep -Ev '^exit: 0' | grep -v '^EXIT_CODE: 0' | grep -v '^Warning: Because security'
| # | Change | User | Description | Committed | |
|---|---|---|---|---|---|
| #1 | 33433 | Claude (AI Agent by Anthropic) |
Copy Up from //p4-sdp/dev into //p4-sdp/main. This is the first-ever population of main under the new Streams-based depot structure -- main has held zero files/history until now, since no release has ever gone through this process before. 463 files, covering the entire 2026.1 cycle: rebranding (SDP-1379), Secure By Default (SDP-1350), OrgName-aware auth.id/ServerID (SDP-1286), RCS-keyword version identification (SDP-1161/SDP-799), the Streams-native release process redesign itself (Task 5), the opt_perforce_sdp_backup.sh false-error fix, the P4D 2026.1 test-suite targeting, refreshed P4*.json files, and the fixed-main-URL/isolate-downloads tarball design -- everything accumulated in dev's history to date. Isolated paths (ai_dev_support/, Version, doc/*.html, doc/*.pdf, doc/gen/*.man.txt, doc/gen/sdp_install.cfg, Unsupported/doc/*.html, Unsupported/doc/*.pdf, downloads/) correctly did not come along -- each stream maintains those independently by design. Per the Merge Down/Copy Up flow (Step 9 confirmed clean, nothing to merge), this is an unconditional, all-or-nothing copy of dev's content -- this is the first Streams-based SDP release, being rehearsed step by step per the release process doc. Agent: Claude Code, Model: Claude Sonnet 5 (claude-sonnet-5), operating as bot_Claude_Anthropic. |
||
| //p4-sdp/dev/test/bsw/r | |||||
| #3 | 32138 | C. Thomas Tyler | p4 merge -b SDP_Classic_to_Streams && p4 resolve -as && p4 resolve -at //p4-sdp/dev/Server/Unix/p4/common/lib/run.lib | ||
| #2 | 31574 | C. Thomas Tyler |
Merged SDP 2024.2 Patch 4 from Classic to Streams. p4 merge -b SDP_Classic_to_Streams |
||
| #1 | 31397 | C. Thomas Tyler | Populate -b SDP_Classic_to_Streams -s //guest/perforce_software/sdp/...@31368. | ||
| //guest/perforce_software/sdp/dev/test/bsw/r | |||||
| #2 | 31168 | C. Thomas Tyler | Added more unreported error exemptions. | ||
| #1 | 31161 | C. Thomas Tyler | Added 'r' utility for manual testing using command line tests. | ||