#!/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/ if ! python3 /p4/test_SDP.py; then tail /tmp/SDPTest.log exit 1 fi if ! python3 /p4/test_Upgrade.py; then tail /tmp/UpgradeSDPTest.log exit 1 fi # Test SDP Upgrade echo Testing the SDP Upgrade Procedure cd /hxdepots [[ -d downloads ]] || mkdir downloads cd downloads [[ -d new ]] && mv new old.$(date +'%Y%m%d-%H%M') ## This curl won't work until after SDP r2021.1 ships and the live sdp.Unix.tgz is updated. Hack around this for ## now. ##curl -s -k -O https://swarm.workshop.perforce.com/projects/perforce-software-sdp/download/downloads/sdp.Unix.tgz ## mkdir new cd new ##tar -xzf ../sdp.Unix.tgz rsync -a /hxdepots/sdp/ /hxdepots/downloads/new/sdp ## cd /hxdepots/downloads/new/sdp/Server/Unix/p4/common/sdp_upgrade if ./sdp_upgrade.sh -y > /tmp/sdp_upgrade.log 2>&1; then echo SDP Upgrade OK. else echo SDP Upgrade FAILED. tail /tmp/sdp_upgrade.log exit 1 fi exit 0
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#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) |