New upstream version 3.1.1
This commit is contained in:
parent
4e9934e5ec
commit
e7b41df57b
229 changed files with 57000 additions and 12055 deletions
49
scripts/test_integration_edge.sh
Executable file
49
scripts/test_integration_edge.sh
Executable file
|
@ -0,0 +1,49 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Do some quick tests via the Json API against the edge
|
||||
#
|
||||
|
||||
AUTH=n2n
|
||||
|
||||
# boilerplate so we can support whaky cmake dirs
|
||||
[ -z "$TOPDIR" ] && TOPDIR=.
|
||||
[ -z "$BINDIR" ] && BINDIR=.
|
||||
|
||||
docmd() {
|
||||
echo "###"
|
||||
"$@"
|
||||
echo
|
||||
}
|
||||
|
||||
# start a supernode
|
||||
docmd ${BINDIR}/supernode -v
|
||||
|
||||
# Start the edge in the background
|
||||
docmd sudo ${BINDIR}/edge -l localhost:7654 -c test >/dev/null
|
||||
# TODO:
|
||||
# - send edge messages to stderr?
|
||||
|
||||
docmd ${TOPDIR}/scripts/n2n-ctl communities
|
||||
docmd ${TOPDIR}/scripts/n2n-ctl packetstats
|
||||
docmd ${TOPDIR}/scripts/n2n-ctl edges --raw
|
||||
|
||||
# TODO:
|
||||
# docmd ${TOPDIR}/scripts/n2n-ctl supernodes --raw
|
||||
# - need fixed mac address
|
||||
# - need to mask out:
|
||||
# - version string
|
||||
# - last_seen timestamp
|
||||
# - uptime
|
||||
|
||||
docmd ${TOPDIR}/scripts/n2n-ctl verbose
|
||||
docmd ${TOPDIR}/scripts/n2n-ctl --write verbose 1 2>/dev/null
|
||||
echo $?
|
||||
docmd ${TOPDIR}/scripts/n2n-ctl -k $AUTH --write verbose 1
|
||||
|
||||
# looks strange, but we are querying the state of the "stop" verb
|
||||
docmd ${TOPDIR}/scripts/n2n-ctl stop
|
||||
|
||||
# stop them both
|
||||
docmd ${TOPDIR}/scripts/n2n-ctl -k $AUTH --write stop
|
||||
docmd ${TOPDIR}/scripts/n2n-ctl -t 5645 -k $AUTH --write stop
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue