mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* Don't do simetric connects in netsync stability test * Convert --datadir to --appdir everywhere Co-authored-by: Ori Newman <orinewman1@gmail.com>
26 lines
530 B
Bash
Executable File
26 lines
530 B
Bash
Executable File
#!/bin/bash
|
|
rm -rf /tmp/kaspad-temp
|
|
|
|
kaspad --devnet --nobanning --appdir=/tmp/kaspad-temp --profile=6061 &
|
|
KASPAD_PID=$!
|
|
|
|
sleep 1
|
|
|
|
infra-level-garbage --devnet -alocalhost:16611 -m messages.dat --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 "infra-level-garbage test: PASSED"
|
|
exit 0
|
|
fi
|
|
echo "infra-level-garbage test: FAILED"
|
|
exit 1
|