Added new unit tests and time-sync code for subtests, recvfrom() fixes
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# create dirs to house the identities/config
|
||||
mkdir alice
|
||||
mkdir bob
|
||||
mkdir ted
|
||||
mkdir carol
|
||||
|
||||
# generate identities
|
||||
zerotier-one alice -d
|
||||
echo $! >> "zto.alice"
|
||||
zerotier-one bob -d
|
||||
echo $! >> "zto.bob"
|
||||
zerotier-one ted -d
|
||||
echo $! >> "zto.ted"
|
||||
zerotier-one carol -d
|
||||
echo $! >> "zto.carol"
|
||||
|
||||
# should be done by now
|
||||
sleep(30)
|
||||
|
||||
# kill daemons
|
||||
echo "killing daemons"
|
||||
|
||||
pid=$(cat alice/zto.alice)
|
||||
kill -9 $pid
|
||||
pid=$(cat bob/zto.bob)
|
||||
kill -9 $pid
|
||||
pid=$(cat ted/zto.ted)
|
||||
kill -9 $pid
|
||||
pid=$(cat carol/zto.carol)
|
||||
kill -9 $pid
|
||||
1898
test/selftest.cpp
1898
test/selftest.cpp
File diff suppressed because it is too large
Load Diff
16
test/stop.sh
16
test/stop.sh
@@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ $1 == "" ]]
|
||||
then
|
||||
echo "Usage: stop <alice|bob>."
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "killing $1"
|
||||
|
||||
for f in "test/*.$1";
|
||||
do
|
||||
pid=$(cat $f)
|
||||
kill -9 $pid
|
||||
rm -rf $f
|
||||
done
|
||||
Reference in New Issue
Block a user