#!/bin/bash # Run the vagrant tests machines="" # Allow the specific platform to be specified via parameter if [ ,"$1" = ,"ubuntu" ] ; then machines="ubuntu" elif [ ,"$1" = ,"centos" ] ; then machines="centos" else machines="ubuntu centos" fi all_test_output=./sdp/alltests.out if [ -f $all_test_output ] ; then rm $all_test_output fi # Make sure that p4 binaries are present and correct origdir=`pwd` cd ./sdp/Server/Unix/p4/common/bin if [ ! -f p4 ]; then wget -nv ftp.perforce.com/perforce/r14.2/bin.linux26x86_64/p4 fi if [ ! -f p4d ]; then wget -nv ftp.perforce.com/perforce/r14.2/bin.linux26x86_64/p4d fi cd $origdir echo Running SDP tests vagrant up > /tmp/sdp-vagrant.out tests_failed=0 for machine in $machines do echo $machine>> $all_test_output test_output="test-$machine.out" vagrant ssh $machine-sdpmaster -c "sudo /p4/reset_sdp.sh" -- -n -T vagrant ssh $machine-sdpmaster -c "sudo -u perforce date > /tmp/$test_output" -- -n -T vagrant ssh $machine-sdpmaster -c "uname -a >> /tmp/$test_output" -- -n -T # Avoid Jenkins immediately failing job without letting us cat the output set +e if [ ,"$machine" = ,"ubuntu" ] ; then vagrant ssh $machine-sdpmaster -c "sudo -H -u perforce python3 /p4/test_SDP.py >> /tmp/$test_output 2>&1" -- -n -T tests_failed=$? else vagrant ssh $machine-sdpmaster -c "sudo -i -u perforce /usr/local/bin/python3.3 /p4/test_SDP.py >> /tmp/$test_output 2>&1" -- -t -t tests_failed=$? fi vagrant ssh $machine-sdpmaster -c "sudo cp /tmp/$test_output /sdp" -- -t -t cat ./sdp/$test_output>> $all_test_output set -e if [ $tests_failed -ne 0 ]; then break fi done cat $all_test_output exit $tests_failed
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#7 | 19024 | Robert Cowham |
Remove Vagrant stuff as now replaced by Docker. Avoid potential user confusion! |
||
#6 | 17282 | Robert Cowham | Update p4/p4d versions being tested to 15.2 | ||
#5 | 13915 | C. Thomas Tyler |
Updated p4/p4d to 2015.1. Updated Python to 3.3.6 from 3.3.5 (to pick up a security patch). |
||
#4 | 12923 | C. Thomas Tyler |
Routine merge down from main to dev. Resolved with 'p4 resolve -as', no merges or conflicts. |
||
#3 | 12028 | C. Thomas Tyler | Refreshed SDP dev branch, merging down from main. | ||
#2 | 11463 | Russell C. Jackson (Rusty) | Updated dev to prepare for Summit agreed changes. | ||
#1 | 10638 | C. Thomas Tyler | Populate perforce_software-sdp-dev. | ||
//guest/perforce_software/sdp/main/test/run_tests.sh | |||||
#1 | 10148 | C. Thomas Tyler | Promoted the Perforce Server Deployment Package to The Workshop. |