test_sdp.sh #2

  • //
  • guest/
  • perforce_software/
  • sdp/
  • dev/
  • test/
  • docker/
  • files/
  • test_sdp.sh
  • View
  • Commits
  • Open Download .zip Download (423 B)
#!/bin/bash
# Tests the SDP - basic tests

/p4/reset_sdp.sh
[[ -L /p4/test_SDP.py ]] || ln -s /sdp/Server/test/test_SDP.py /p4/
[[ -L /p4/test_Upgrade.py ]] || ln -s /sdp/Server/test/test_Upgrade.py /p4/

python3 /p4/test_SDP.py
result=$?
[[ $result -eq 0 ]] || tail /tmp/SDPTest.log
[[ $result -eq 0 ]] || exit $result

python3 /p4/test_Upgrade.py
result=$?
[[ $result -eq 0 ]] || tail /tmp/UpgradeSDPTest.log
exit $result
# Change User Description Committed
#10 31513 C. Thomas Tyler Removed parallel checkpoint test from test_sdp.sh.

This test was done in a way specific to the 2023.2 release when
multi-file parallel checkpoints were new, and before the Battle
School QA Test Suite was in place.  Parallel checkpoint functionality
now has far better coverage and is better tested in the Battle School
QA test suite. We can safely drop this old basic test from the
Docker test suite without loss of test coverage.
#9 31421 C. Thomas Tyler Adapted test suite to new version of backup_functions.sh with that
now passes '-v track=-1' on p4d commands to reduce excessive noise
during checkpoint operations.
#8 31034 C. Thomas Tyler Added version parameter.
#7 29594 C. Thomas Tyler Adjusted test for r23.1 multifile parallel checkpoint.
#6 28850 C. Thomas Tyler Test suite tweaks:
* Added command line usage notes in scripts.
* Enhanced comand line processing.
* Added aliases for building on Rocky Linux 8.

#review-28851
#5 28377 C. Thomas Tyler Added test for correct extraction of custom logic during SDP ugprade.
This test also ensure correct load order for the shell environment.

#review-28378
#4 28252 C. Thomas Tyler Enahced test suite: verify_sdp.sh runs after testing sdp_ugprade.sh.
#3 28232 C. Thomas Tyler Added test for sdp_upgrade.sh.
#2 25554 Robert Cowham Automated tests for calling upgrade.sh
#1 25258 Robert Cowham Rework the containers in preparation for multi container testing
mkrep changes:
Remove -c cfg option which was unused anyway
Converted tabs to spaces
Fixed logic error causing forwarding replicas to bail due to unsupported p4d version
Standby servers require ReplicatingFrom field
Add seconds to log file name (useful for testing to avoid overwriting files)