forked from Liquifact/Liquifact-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_compile.sh
More file actions
60 lines (52 loc) · 1.67 KB
/
Copy pathtest_compile.sh
File metadata and controls
60 lines (52 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
# Gold Standard Integration Test Runner
echo "🚀 Running LiquiFact Escrow Gold Standard Integration Test"
echo "=================================================="
cd escrow
# Clean any existing build artifacts
echo "🧹 Cleaning build artifacts..."
cargo clean
# Check compilation
echo "🔍 Checking compilation..."
if cargo check; then
echo "✅ Compilation successful"
else
echo "❌ Compilation failed"
exit 1
fi
# Run the gold standard integration test
echo "🧪 Running gold standard integration test..."
if cargo test test_escrow_gold_standard_happy_path_open_overfund_snapshot_settle_claim --lib -- --nocapture; then
echo "✅ Gold standard test passed"
else
echo "❌ Gold standard test failed"
exit 1
fi
# Run the tiered yield test
echo "🧪 Running tiered yield integration test..."
if cargo test test_escrow_tiered_yield_with_commitment_locks --lib -- --nocapture; then
echo "✅ Tiered yield test passed"
else
echo "❌ Tiered yield test failed"
exit 1
fi
# Run all integration tests
echo "🧪 Running all integration tests..."
if cargo test integration --lib -- --nocapture; then
echo "✅ All integration tests passed"
else
echo "❌ Some integration tests failed"
exit 1
fi
echo ""
echo "🎉 All tests completed successfully!"
echo "📋 Summary:"
echo " ✅ Compilation check passed"
echo " ✅ Gold standard happy path test passed"
echo " ✅ Tiered yield commitment test passed"
echo " ✅ All integration tests passed"
echo ""
echo "🔗 Next steps:"
echo " 1. Run 'cargo test' to run all tests"
echo " 2. Run 'cargo llvm-cov' for coverage analysis"
echo " 3. Submit PR with test output summary"