forked from compound-finance/comet
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.sh
More file actions
executable file
·58 lines (50 loc) · 1.53 KB
/
index.sh
File metadata and controls
executable file
·58 lines (50 loc) · 1.53 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
#!/bin/bash
# Test Governor Setup Script
# This script runs the governance verification tests to validate the deployed governance configuration
set -e
# Default values
NETWORK="local"
# Parse command line arguments
while [[ $# -gt 0 ]]; do
case $1 in
-n|--network)
NETWORK="$2"
shift 2
;;
--help|-h)
echo "Usage: $0 [options]"
echo ""
echo "Options:"
echo " -n, --network <network> Network to test (default: local)"
echo " --help, -h Show this help message"
echo ""
echo "Examples:"
echo " # Run governance verification tests on local network"
echo " $0 --network local"
echo " $0 -n local"
echo ""
echo " # Run governance verification tests on polygon network"
echo " $0 --network polygon"
echo " $0 -n polygon"
echo ""
echo "Note: This script validates the deployed governance configuration"
echo "against the expected configuration values."
exit 0
;;
*)
echo "Unknown option: $1"
echo "Use --help for usage information"
exit 1
;;
esac
done
echo "🔍 Starting Governor Setup Verification"
echo "Network: $NETWORK"
echo ""
# Run the governance verification tests
echo "🧪 Running Governance Verification Tests..."
echo ""
yarn hardhat test e2e/deployment-verification-test.ts --network "$NETWORK" --grep "Governance Verification"
echo ""
echo "✅ Governor Setup Verification Completed"
echo "🔧 Governance configuration has been validated successfully"