mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 05:43:59 -07:00
Modified Nginx test scripts
This commit is contained in:
parent
1dec034f77
commit
afafde2571
15 changed files with 391 additions and 13 deletions
|
@ -1,12 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Runs test image and monitor image as daemons
|
||||
|
||||
test_name=${PWD##*/}
|
||||
echo 'Building dockerfiles for test: ' "$test_name"
|
||||
echo 'Starting containers for: ' "$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)
|
||||
|
||||
|
@ -14,4 +11,6 @@ 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
|
||||
docker rm $monitor_container
|
||||
|
||||
rm -f *.name
|
Loading…
Add table
Add a link
Reference in a new issue