- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control. - Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities. - Created .gitmodules to include OpenZeppelin contracts as a submodule. - Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment. - Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks. - Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring. - Created scripts for resource import and usage validation across non-US regions. - Added tests for CCIP error handling and integration to ensure robust functionality. - Included various new files and directories for the orchestration portal and deployment scripts.
56 lines
1.1 KiB
Bash
Executable File
56 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Run all tests in parallel
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
echo "=== 🧪 Running Tests in Parallel ==="
|
|
|
|
# Create test results directory
|
|
mkdir -p test-results
|
|
|
|
# Run Foundry tests (excluding CCIP integration)
|
|
echo "Running Foundry tests..."
|
|
forge test --no-match-path 'test/ccip-integration/*' --json > test-results/foundry.json 2>&1 &
|
|
FORGE_PID=$!
|
|
|
|
# Run Hardhat tests (if any)
|
|
if [ -d "test/hardhat" ]; then
|
|
echo "Running Hardhat tests..."
|
|
npx hardhat test > test-results/hardhat.log 2>&1 &
|
|
HARDHAT_PID=$!
|
|
else
|
|
HARDHAT_PID=""
|
|
fi
|
|
|
|
# Wait for all tests
|
|
wait $FORGE_PID
|
|
FORGE_EXIT=$?
|
|
|
|
if [ -n "$HARDHAT_PID" ]; then
|
|
wait $HARDHAT_PID
|
|
HARDHAT_EXIT=$?
|
|
else
|
|
HARDHAT_EXIT=0
|
|
fi
|
|
|
|
# Report results
|
|
echo ""
|
|
echo "=== Test Results ==="
|
|
if [ $FORGE_EXIT -eq 0 ]; then
|
|
echo "✅ Foundry tests: PASSED"
|
|
else
|
|
echo "❌ Foundry tests: FAILED"
|
|
fi
|
|
|
|
if [ -n "$HARDHAT_PID" ]; then
|
|
if [ $HARDHAT_EXIT -eq 0 ]; then
|
|
echo "✅ Hardhat tests: PASSED"
|
|
else
|
|
echo "❌ Hardhat tests: FAILED"
|
|
fi
|
|
fi
|
|
|
|
exit $((FORGE_EXIT + HARDHAT_EXIT))
|