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

* Add stability-tests * Fix requires * Fix golint errors * Update README.md * Remove payloadHash from everywhere * don't run vet on kaspad in stability-tests/install_and_test
22 lines
426 B
Bash
Executable File
22 lines
426 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
SLOW_DAGS_DIR="../dags-slow"
|
|
mapfile -t DAGS < <( ls $SLOW_DAGS_DIR)
|
|
|
|
for dagArchive in "${DAGS[@]}"
|
|
do
|
|
JSON_FILE=$SLOW_DAGS_DIR/$dagArchive
|
|
netsync --simnet --dag-file $JSON_FILE --profile=7000
|
|
echo "$dagArchive processed"
|
|
if [ $TEST_EXIT_CODE -ne 0 ]; then
|
|
echo "netsync (slow) test: FAILED"
|
|
exit 1
|
|
fi
|
|
rm -rf /tmp/STABILITY_TEMP_DIR_*
|
|
done
|
|
|
|
echo "netsync (slow) test: PASSED"
|
|
exit 0
|
|
|