Skip to content

Commit

Permalink
test file and shell script to start. most commands for alpha 16 tested
Browse files Browse the repository at this point in the history
  • Loading branch information
scoin committed Mar 3, 2016
1 parent 808c633 commit 3ecbe56
Show file tree
Hide file tree
Showing 2 changed files with 440 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
CWD=${PWD##*/}
if [ "$CWD" == "test" ]; then
TESTDIR=$PWD
else
TESTDIR=$PWD/test
fi

CHAINDIR="$TESTDIR/temp"
CHAINNAME=test
CHAINPORT=6601

mkdir $CHAINDIR

multichain-util create $CHAINNAME --datadir=$CHAINDIR
multichaind $CHAINNAME --datadir=$CHAINDIR --rpcuser=$CHAINNAME --rpcpassword=$CHAINNAME --rpcport=$CHAINPORT --sendfreetransactions & PID=$!; sleep 2

node "$TESTDIR/test.js"

kill -9 $PID
rm -r $CHAINDIR
Loading

0 comments on commit 3ecbe56

Please sign in to comment.