This commit is contained in:
rigel rozanski 2017-06-28 05:49:49 -04:00
parent e521f3769e
commit 985665fb8a

View File

@ -1,15 +1,11 @@
<!--- shelldown script template, see github.com/rigelrozanski/shelldown
#!/bin/bash
test00Install() {
#shelldown[0][-1]
}
OneTimeSetup() {
#shelldown[1][3]
KEYPASS=${2:-qwertyuiop}
oneTimeSetup() {
#shelldown[1][2]
KEYPASS=qwertyuiop
(echo $KEYPASS; echo $KEYPASS) | #shelldown[1][3] $1 >/dev/null 2>/dev/null
(echo $KEYPASS; echo $KEYPASS) | #shelldown[1][4] $1 >/dev/null 2>/dev/null
(echo $KEYPASS; echo $KEYPASS) | #shelldown[1][5] $1 >/dev/null 2>/dev/null
#shelldown[3][-1]
@ -18,6 +14,11 @@ OneTimeSetup() {
PID_SERVER=$!
}
oneTimeTearDown() {
kill -9 $PID_SERVER >/dev/null 2>&1
sleep 1
}
test01SendTX() {
#shelldown[5][-1]
#shelldown[6][-1]
@ -28,11 +29,6 @@ test01SendTX() {
#shelldown[11][-1]
}
OneTimeTearDown() {
kill -9 $PID_SERVER >/dev/null 2>&1
sleep 1
}
# load and run these tests with shunit2!
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" #get this files directory
. $DIR/shunit2