mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
ZT_NC_NWID patch + (WIP) test script modifications
This commit is contained in:
parent
2196d982c3
commit
d9b12be697
28 changed files with 1148 additions and 57 deletions
28
netcon/docker-test/run_tests.sh
Executable file
28
netcon/docker-test/run_tests.sh
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Merely RUNS test images
|
||||
|
||||
# Remove previous test results
|
||||
rm _results/*.txt
|
||||
|
||||
# How long we shall wait for each test to conclude
|
||||
export netcon_test_wait_time=60s
|
||||
|
||||
# Test structure, in later releases more complex multi-party scripts will be included
|
||||
export test_script=two_party_test.sh
|
||||
|
||||
# Iterate over all depth=2 (relatively-speaking) directories and perform each test
|
||||
find . -mindepth 2 -maxdepth 2 -type d | while read testdir; do
|
||||
echo "*** Testing: '$testdir'..."
|
||||
rm _results/*.tmp
|
||||
|
||||
# Stage scripts
|
||||
cp $test_script $testdir/$test_script
|
||||
cd $testdir
|
||||
|
||||
# Run test
|
||||
./$test_script
|
||||
rm $test_script
|
||||
|
||||
cd ../../
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue