Added new unit tests and time-sync code for subtests, recvfrom() fixes

This commit is contained in:
Joseph Henry
2017-09-05 16:51:07 -07:00
parent ec323c9842
commit 142c27091c
11 changed files with 1584 additions and 829 deletions

View File

@@ -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

File diff suppressed because it is too large Load Diff

View File

@@ -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