Svarog a7299c1b87
Add stability tests (#1587)
* 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
2021-03-09 15:01:08 +02:00

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