Updated selftest and echotest, also added a few scripts

This commit is contained in:
Joseph Henry
2017-06-22 18:22:39 -07:00
parent e10c621405
commit ab7e9d0091
8 changed files with 783 additions and 405 deletions

23
test/generate_test_env.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# create dirs to house the identities/config
mkdir -p test_identities
mkdir test_identities/alice
mkdir test_identities/bob
# generate identities
zerotier-one test_identities/alice -d
echo $! >> "test_identities/zto.alice"
zerotier-one test_identities/bob -d
echo $! >> "test_identities/zto.bob"
# should be done by now
sleep(30)
# kill daemons
echo "killing daemons"
pid=$(cat test_identities/alice/zto.alice)
kill -9 $pid
pid=$(cat test_identities/bob/zto.bob)
kill -9 $pid