-
Notifications
You must be signed in to change notification settings - Fork 0
/
A2_contracts_tests.sh
executable file
·39 lines (32 loc) · 1.35 KB
/
A2_contracts_tests.sh
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
#!/bin/bash
NC='\033[0m'
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
set -e
echo ""
echo ""
echo -e "${GREEN}=========================================================${NC}"
echo -e "${GREEN}PubSub contracts gas evaluation...${NC}"
pushd pubsub-onchain
echo -e "${YELLOW}Running GasCostEvalMultiSubs.py...${NC}"
../venv/bin/python3 tests/GasCostEvalMultiSubs.py
echo -e "${YELLOW}Running GasCostEvalMultiPubs.py...${NC}"
../venv/bin/python3 tests/GasCostEvalMultiPubs.py
echo -e "${YELLOW}Running GasCostEvalDeploy.py...${NC}"
../venv/bin/python3 tests/GasCostEvalDeploy.py
echo -e "${YELLOW}Running GasCostEvalPlot.py...${NC}"
../venv/bin/python3 tests/GasCostEvalPlot.py
popd
echo -e "${GREEN}PubSub contracts gas evaluation complete.${NC}"
echo -e "${GREEN}=========================================================${NC}"
echo -e "${GREEN}=========================================================${NC}"
echo -e "${GREEN}Revoker contracts gas evaluation...${NC}"
pushd revoker-onchain
echo -e "${YELLOW}Running GasEvalEnclaveRevoker.py...${NC}"
../venv/bin/python3 utils/GasEvalEnclaveRevoker.py
echo -e "${YELLOW}Running GasEvalKeyRevoker.py...${NC}"
../venv/bin/python3 utils/GasEvalKeyRevoker.py
popd
echo -e "${GREEN}Revoker contracts gas evaluation complete.${NC}"
echo -e "${GREEN}=========================================================${NC}"