scoin / multichain-node

A simple wrapper for Multichain's JSON RPC api that parses your input.
MIT License
73 stars 54 forks source link

Running the test on windows? #16

Open jacobvincent opened 7 years ago

jacobvincent commented 7 years ago

Hi,

The run file has commands shown below, which i assume is specifically linux commands. How can i test this on a windows OS?

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 5

node "$TESTDIR/test.js"

kill -9 $PID rm -r $CHAINDIR

Thanks, Jacob