Skip to content

Running the test on windows? #16

@jacobvincent

Description

@jacobvincent

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions