(WIP) Additional test script changes
This commit is contained in:
17
netcon/docker-test/redis/redis-3.0.4-1.fc23.x86_64/_two_party_test.sh
Executable file
17
netcon/docker-test/redis/redis-3.0.4-1.fc23.x86_64/_two_party_test.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Runs test image and monitor image as daemons
|
||||
|
||||
test_name=${PWD##*/}
|
||||
echo 'Building dockerfiles for test: ' "$test_name"
|
||||
touch "$test_name".name
|
||||
|
||||
# Start netcon container to be tested
|
||||
test_container=$(docker run -d -it -v $PWD/../../_results:/opt/results --device=/dev/net/tun "$test_name":latest)
|
||||
monitor_container=$(docker run -d -it -v $PWD/../../_results:/opt/results --device=/dev/net/tun "$test_name"_monitor:latest)
|
||||
|
||||
echo "waiting $netcon_test_wait_time for test to complete."
|
||||
sleep $netcon_test_wait_time
|
||||
docker stop $(docker ps -a -q)
|
||||
docker rm $test_container
|
||||
docker rm $monitor_container
|
||||
Reference in New Issue
Block a user