This is a test harness for the Perforce Unix SDP (Server Deployment Package). It used to use Vagrant, but has now been converted to use Docker containers (see older versions of this file for Vagrant instructions).
To use this bundle you will need to download and install the following free tool:
https://docs.docker.com/engine/installation/
If you're not familiar with Docker, it is building up a huge momentum because of its sweet spot functionality which addresses fast creation of virtual environments and the ability to ship images with all dependencies between different environments.
1) Have a workspace which looks like (assuming name of myws.sdp):
View:
//guest/perforce_software/sdp/main/... //myws.sdp/sdp/...
2) sync the workspace
3) From the command prompt run run_docker_tests.sh from the root directory. The first time you run it will take a while as it builds the initial docker images!
Build your docker image (from workspace root):
1) docker build --rm=true -t=ubuntu-sdp -f sdp/test/docker/Dockerfile.centos6.sdp sdp/test/docker
How to run all tests:
1) docker run --rm -v pwd
/sdp:/sdp centos6-sdp /p4/docker_entry.sh
How to interactively poke around inside the container:
1) docker run --rm -v pwd
/sdp:/sdp -it centos6-sdp /bin/bash
2) Run 'sudo su - perforce' to become user perforce (home directory is /p4)
3) /p4/test_sdp.sh
Substitute 'centos' for 'ubuntu' for different distribution in above commands.
Can run new tests:
docker-compose up -d
Then:
docker exec sdp_c6master_1 /sdp/Server/test/reset_sdp.sh -no_ssl -B -fast -no_sd
Welcome ======= This is a test harness for the Perforce Unix SDP (Server Deployment Package). It used to use Vagrant, but has now been converted to use Docker containers (see older versions of this file for Vagrant instructions). Requirements ------------ To use this bundle you will need to download and install the following free tool: https://docs.docker.com/engine/installation/ If you're not familiar with Docker, it is building up a huge momentum because of its sweet spot functionality which addresses fast creation of virtual environments and the ability to ship images with all dependencies between different environments. https://docs.docker.com/mac/ Usage ----- 1) Have a workspace which looks like (assuming name of myws.sdp): View: //guest/perforce_software/sdp/main/... //myws.sdp/sdp/... 2) sync the workspace 3) From the command prompt run run_docker_tests.sh from the root directory. The first time you run it will take a while as it builds the initial docker images! Workflow for testing -------------------- Build your docker image (from workspace root): 1) docker build --rm=true -t=ubuntu-sdp -f sdp/test/docker/Dockerfile.centos6.sdp sdp/test/docker How to run all tests: 1) docker run --rm -v `pwd`/sdp:/sdp centos6-sdp /p4/docker_entry.sh How to interactively poke around inside the container: 1) docker run --rm -v `pwd`/sdp:/sdp -it centos6-sdp /bin/bash 2) Run 'sudo su - perforce' to become user perforce (home directory is /p4) 3) /p4/test_sdp.sh Substitute 'centos' for 'ubuntu' for different distribution in above commands. Can run new tests: docker-compose up -d Then: docker exec sdp_c6master_1 /sdp/Server/test/reset_sdp.sh -no_ssl -B -fast -no_sd
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 25113 | Robert Cowham | Merge latest changes from dev | ||
#4 | 22142 | Robert Cowham | Merge in latest changes from Dev | ||
#3 | 20828 | Robert Cowham | Use docker-compose | ||
#2 | 20726 | Robert Cowham | Catch up from dev | ||
#1 | 18586 | Robert Cowham | Branching using cowhamr.sdp.dev | ||
//guest/perforce_software/sdp/dev/test/README.md | |||||
#3 | 12924 | C. Thomas Tyler | Very minor doc tweaks in SDP test suite. | ||
#2 | 12028 | C. Thomas Tyler | Refreshed SDP dev branch, merging down from main. | ||
#1 | 10638 | C. Thomas Tyler | Populate perforce_software-sdp-dev. | ||
//guest/perforce_software/sdp/main/test/README.md | |||||
#2 | 10459 | Robert Cowham |
Fix test comments regarding workspace setup for Workshop location Tidy Vangrantfile comments #review |
||
#1 | 10148 | C. Thomas Tyler | Promoted the Perforce Server Deployment Package to The Workshop. |