mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-20 22:06:42 +00:00

* Copy some boilerplate from the other stability tests. * Fix a copy+paste error in run.sh. * Copy over some stability test boilerplate go code. * Run kaspad in the background. * Catch panics and initialize the RPC client. * Mine enough blocks to fund filling up the mempool. * Extract coinbase transactions out of the generated blocks. * Tidy up a bit. * Implement submitting transactions. * Lower the amount of outputs in each transaction. * Verify that the mempool size has the expected amount of transactions. * Pregenerate enough funds before submitting the first transaction so that block creation doesn't interfere with the test. * Empty mempool out by continuously adding blocks to the DAG. * Handle orphan transactions when overfilling the mempool. * Increase mempoolSizeLimit to 1m. * Fix a comment. * Fix a comment. * Add mempool-limits to run-slow.sh. * Rename generateTransactionsWithLotsOfOutputs to generateTransactionsWithMultipleOutputs. * Rename generateCoinbaseTransaction to mineBlockAndGetCoinbaseTransaction. * Make generateFundingCoinbaseTransactions return an object instead of store a global variable. * Convert mempool-limits into a Go test. * Convert panics to t.Fatalfs. * Fix a comment. * Increase mempoolSizeLimit to 1m. * Run TestMempoolLimits only if RUN_STABILITY_TESTS is set. * Move the run of mempool-limits in run-slow.sh. * Add a comment above fundingCoinbaseTransactions. * Make a couple of stylistic changes. * Use transactionhelper.CoinbaseTransactionIndex instead of hardcoding 0. * Make uninteresting errors print %+v instead of %s. Co-authored-by: Svarog <feanorr@gmail.com>
56 lines
1.7 KiB
Bash
Executable File
56 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
BASEDIR=$(dirname "$0")
|
|
PROJECT_ROOT=$( cd "${BASEDIR}/.."; pwd)
|
|
|
|
failedTests=()
|
|
|
|
# echo "Running application-level-garbage"
|
|
# cd "${PROJECT_ROOT}/application-level-garbage/run" && ./run.sh || failedTests+=("application-level-garbage")
|
|
# echo "Done running application-level-garbage"
|
|
|
|
echo "Running infra-level-garbage"
|
|
cd "${PROJECT_ROOT}/infra-level-garbage/run" && ./run.sh || failedTests+=("infra-level-garbage")
|
|
echo "Done running infra-level-garbage"
|
|
|
|
echo "Running kaspadsanity"
|
|
cd "${PROJECT_ROOT}/kaspadsanity/run" && ./run.sh || failedTests+=("kaspadsanity")
|
|
echo "Done running kaspadsanity"
|
|
|
|
echo "Running rpc-stability"
|
|
cd "${PROJECT_ROOT}/rpc-stability/run" && ./run.sh || failedTests+=("rpc-stability")
|
|
echo "Done running rpc-stability"
|
|
|
|
echo "Running rpc-idle-clients"
|
|
cd "${PROJECT_ROOT}/rpc-idle-clients/run" && ./run.sh || failedTests+=("rpc-idle-clients")
|
|
echo "Done running rpc-idle-clients"
|
|
|
|
echo "Running simple-sync"
|
|
cd "${PROJECT_ROOT}/simple-sync/run" && ./run.sh || failedTests+=("simple-sync")
|
|
echo "Done running simple-sync"
|
|
|
|
echo "Running orphans"
|
|
cd "${PROJECT_ROOT}/orphans/run" && ./run.sh || failedTests+=("orphans")
|
|
echo "Done running orphans"
|
|
|
|
echo "Running reorg"
|
|
cd "${PROJECT_ROOT}/reorg/run" && ./run.sh || failedTests+=("reorg")
|
|
echo "Done running reorg"
|
|
|
|
echo "Running mempool-limits"
|
|
cd "${PROJECT_ROOT}/mempool-limits/run" && ./run.sh || failedTests+=("mempool-limits")
|
|
echo "Done running mempool-limits"
|
|
|
|
echo "Running netsync - slow"
|
|
cd ${PROJECT_ROOT}/netsync/run"" && ./run.sh || failedTests+=("netsync")
|
|
echo "Done running netsync - slow"
|
|
|
|
EXIT_CODE=0
|
|
for t in "${failedTests[@]}"; do
|
|
EXIT_CODE=1
|
|
echo "FAILED: ${t}"
|
|
done
|
|
|
|
echo "Exiting with: ${EXIT_CODE}"
|
|
exit $EXIT_CODE |