# The one-line entries in this file are in one of two formats: # # TestFile|ExpectedExitCode|StringExpectedInOutput|Comments # # or: # # TestFile|ExpectedExitCode|CBDLOG:StringExpectedInCBDLog|Comments bit.1.txt|0|CBDLOG:Ignoring classic workspace bruno_ws|Sync classic workspace bruno_ws. # Test 2 is a repro of Pete Hopkins test case where a sync got a bogus "out of CBD scope" indication. # The workspace had the Host option defined, as does the workspace referenced in bit.2.txt. The sync # was done with a 'narrow' path, i.e. below the root of the workpace (since syncs from the workspace root # are handled differently. # bit.2.txt|0|CBDLOG:Rewrite: arg: C:/p4/Jam/src/...#head|Repro of Pete's test case, workspace with Host field set. bit.3.txt|0|CBDLOG:C:/p4/Jam/src/Build.com#head|Force sync of one file. Repro of Magesh's force sync "One for All" test case. bit.4.txt|0|CBDLOG:C:/p4/Jam/src/Build.com@Jam-2.0.1.0|Force sync of one file to a label. bit.5.txt|0|CBDLOG:c:/p4/CT/gwt/src/com/google/gwt/sample/dynatable/public/DynaTable.html@12050|Sync from a locked workspace of one file to a CBD revision. bit.6.txt|0|CBDLOG:Ignoring CBD rules in favor of explicit revision specifier for path|Sync from a locked workspace of one file to a specified revision. bit.7.txt|0|CBDLOG:c:/p4/CT/gwt/src/com/google/gwt/sample/dynatable/public/DynaTable.html@12050|Sync without vspec, expecting @12050. bit.8.txt|0|CBDLOG:SchoolCalendarServiceImpl.java@12050|Sync using simple relative path to get CBD revision. bit.9.txt|0|../DynaTable.gwt.xml@12050|Sync using complex relative path to get CBD revision. bit.10.txt|0|//gwt-streams/release1.5/...@12050|Sync from root of Linux workspace w/ WSROOT/..., expecting global CBD sync (job000326). bit.11.txt|0|//gwt-streams/release1.5/...@12050|Sync from root of Linux workspace w/ ..., expecting global CBD sync. bit.12.txt|0|["CBD sync ['-n']", '...@12050']|Sync from root/gwt <subdir> of Linux workspace w/..., expecting narrow CBD sync for gwt component (job000327). bit.13.txt|0|["CBD sync ['-n']", '...@99999999999999']|Sync from root/gwt <subdir> of Linux workspace w/...@99999999999999, expecting narrow CBD sync for gwt component (job000327). bit.14.txt|0|CBDLOG://gwt-streams/release1.5/...|Sync from root/gwt <subdir> of Windows workspace w/...@99999999999999, expecting narrow CBD sync for gwt component (job000327). bit.15.txt|0|DynaTable.gwt.xml@12050|Case of the drive letter in Root field of user workspace does not match CWD. (job000330) bit.16.txt|1|ERROR: CBD was not able to translate path|Negative test: Sync from bogus dir outside workspace, expecting reasonable error message.
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#6 | 15358 | C. Thomas Tyler |
Tweaked test prep to use an uppercase drive letter in creation of test workspace earl_jams, to better test for Windows drive letter issues (Workshiop job job000330). Added new test for job000330, which initially failed (a valid repro). With changes in Cbd.py, it now passes. |
||
#5 | 15281 | C. Thomas Tyler |
Added more tests, cleaned up others. All pass. |
||
#4 | 15274 | C. Thomas Tyler |
Merge Down of cbd to dev from main using: p4 merge -b perforce_software-cbd-dev |
||
#3 | 15156 | C. Thomas Tyler |
Expanded test suite to add regression tests for handling Local OS paths in various forms. |
||
#2 | 15039 | C. Thomas Tyler |
Merge Down CBD to dev from main to pick up test suite improvements and an exception bug fix in Cbd.py. |
||
#1 | 14907 | C. Thomas Tyler |
Moved test data files into 'shared' folder to make them available on the 'helix-01' text VM, and tweaked test_cbd.sh to reference them there. |
||
//guest/perforce_software/cbd/dev/test/bit.cfg | |||||
#1 | 14844 | C. Thomas Tyler |
Overhauled regression test suite. Added various command line tests. Enhanced test suite to allow entries in the test data file to specify alternate user and workspaces (differing from defaults defined in the test test configuration files, test_cbd.*.cfg) for certain tests. Added new testing method, broker input testing, to augment existing command line testing. This test method simulates having 'p4d' call the CBD broker sync script by feeding handcrafted/simulated broker input files to the CBD engine, simulating the way p4d uses stdin to feed the broker parameters when a user makes a request. This enables more diverse testing and better simulation of Window and P4V-side testing. |