Svarog 3959bc1e7c
Fixes to stability tests: Move orphans test to simnet + Change fakePublicKeyHash size to 32 bytes (#1630)
* Move orphans test to simnet

* Change fakePublicKeyHash size to correct one
2021-03-25 12:04:41 +02:00

26 lines
471 B
Bash
Executable File

#!/bin/bash
rm -rf /tmp/kaspad-temp
kaspad --simnet --appdir=/tmp/kaspad-temp --profile=6061 &
KASPAD_PID=$!
sleep 1
orphans --simnet -alocalhost:16511 -n20 --profile=7000
TEST_EXIT_CODE=$?
kill $KASPAD_PID
wait $KASPAD_PID
KASPAD_EXIT_CODE=$?
echo "Exit code: $TEST_EXIT_CODE"
echo "Kaspad exit code: $KASPAD_EXIT_CODE"
if [ $TEST_EXIT_CODE -eq 0 ] && [ $KASPAD_EXIT_CODE -eq 0 ]; then
echo "orphans test: PASSED"
exit 0
fi
echo "orphans test: FAILED"
exit 1