mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 05:43:59 -07:00
Test update
This commit is contained in:
parent
3d163f7044
commit
275a76ff5c
22 changed files with 469 additions and 7 deletions
40
netcon/docker-test/nodejs/nodejs-0.10.36-4.fc23/test.sh
Executable file
40
netcon/docker-test/nodejs/nodejs-0.10.36-4.fc23/test.sh
Executable file
|
@ -0,0 +1,40 @@
|
|||
|
||||
test_name=${PWD##*/}
|
||||
echo 'Building dockerfiles for test: ' "$test_name"
|
||||
touch "$test_name".name
|
||||
|
||||
# Docker won't allow the inclusion of files outside of the build directory
|
||||
cp ../../*.conf .
|
||||
cp ../../zerotier-one zerotier-one
|
||||
cp ../../zerotier-cli zerotier-cli
|
||||
cp ../../zerotier-intercept zerotier-intercept
|
||||
cp ../../libzerotierintercept.so.1.0 libzerotierintercept.so.1.0
|
||||
cp ../../liblwip.so liblwip.so
|
||||
cp ../../netcon_identity.public netcon_identity.public
|
||||
cp ../../netcon_identity.secret netcon_identity.secret
|
||||
cp ../../monitor_identity.public monitor_identity.public
|
||||
cp ../../monitor_identity.secret monitor_identity.secret
|
||||
|
||||
docker build --tag="$test_name" -f netcon_dockerfile .
|
||||
docker build --tag="$test_name"_monitor -f monitor_dockerfile .
|
||||
|
||||
rm -f zerotier-one
|
||||
rm -f zerotier-cli
|
||||
rm -f zerotier-intercept
|
||||
rm -f libzerotierintercept.so.1.0
|
||||
rm -f liblwip.so
|
||||
rm -f netcon_identity.public
|
||||
rm -f netcon_identity.secret
|
||||
rm -f monitor_identity.public
|
||||
rm -f monitor_identity.secret
|
||||
rm -f *.conf
|
||||
rm -f *.name
|
||||
|
||||
# Start netcon container to be tested
|
||||
docker run -d -it -v $PWD/../../_results:/opt/results --device=/dev/net/tun "$test_name":latest
|
||||
docker run -d -it -v $PWD/../../_results:/opt/results --device=/dev/net/tun "$test_name"_monitor:latest
|
||||
|
||||
sleep 45s
|
||||
docker kill $(docker ps -a -q)
|
||||
|
||||
rm -rf ../../_results/*.tmp
|
Loading…
Add table
Add a link
Reference in a new issue