733ecd2681
Add root Cargo workspace with 9 crates: salvium-crypto (extended), salvium-types, salvium-consensus, salvium-wallet, salvium-tx, salvium-rpc, salvium-miner (extended), salvium-cli, salvium-multisig. New modules: chain_state, block_weight, alt_chain, validation, offline signing, stake lifecycle, wallet sync/query/encryption/utxo, randomx utilities, and full multisig crate with CARROT support. Delete 188 JS test/helper/debug files; archive integration test scripts to test/legacy-js/ for live testnet use. Testnet integration tests (transfer, stake, burn, convert, sweep) remain as #[ignore]- gated Rust tests runnable with --ignored against a live daemon.
42 lines
1009 B
Bash
Executable File
42 lines
1009 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run all tests: unit tests first, then integration tests
|
|
#
|
|
# Usage:
|
|
# ./test/run-all.sh # Unit + integration tests
|
|
# ./test/run-all.sh --unit # Unit tests only
|
|
# ./test/run-all.sh --integration [phase] # Integration tests only
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
MODE="${1:---both}"
|
|
|
|
case "$MODE" in
|
|
--unit)
|
|
bash test/run-unit.sh
|
|
;;
|
|
--integration)
|
|
shift
|
|
bash test/run-integration.sh "${1:-all}"
|
|
;;
|
|
--both|*)
|
|
echo "============================================================"
|
|
echo " salvium-js Full Test Suite"
|
|
echo "============================================================"
|
|
echo ""
|
|
|
|
echo ">>> Unit Tests"
|
|
echo ""
|
|
if bash test/run-unit.sh; then
|
|
echo ""
|
|
echo ">>> Unit tests PASSED, running integration tests..."
|
|
echo ""
|
|
bash test/run-integration.sh "${2:-all}"
|
|
else
|
|
echo ""
|
|
echo ">>> Unit tests FAILED, skipping integration tests"
|
|
exit 1
|
|
fi
|
|
;;
|
|
esac
|