Skip to content

Commit 5a022e3

Browse files
committed
alternative proof selection script/table
1 parent fcc2a7a commit 5a022e3

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# /bin/bash
2+
#
3+
# Usage: ./select-proofs.sh "Table Header"
4+
# - select the proofs from one of the tables in the file
5+
# (the first match will be taken)
6+
##########################################################
7+
8+
USAGE=$(head -6 $0)
9+
10+
if [ -z "$1" ]; then
11+
head -6 $0
12+
exit 1
13+
fi
14+
15+
HEADING="$1"
16+
17+
if ! (grep -e "^| $HEADING" $0 > /dev/null); then
18+
echo "[ERROR] '| $HEADING..': not a table header. Must provide a table heading to select proofs."
19+
exit 1
20+
fi
21+
22+
sed -n -e "/^| ${HEADING}.*/,/^\$/ {/| ${HEADING}.*/d; /^\$/q; s/^| \(test_p[a-zA-Z0-9_]*\) .*/\1/p}" <<EOF
23+
24+
| Passing |
25+
|-----------------------------------------------|
26+
| test_ptoken_domain_data |
27+
| test_process_approve |
28+
| test_process_approve_checked |
29+
| test_process_withdraw_excess_lamports_account |
30+
| test_process_transfer |
31+
| test_process_mint_to |
32+
| test_process_burn |
33+
| test_process_close_account |
34+
| test_process_transfer_checked |
35+
| test_process_burn_checked |
36+
| test_process_revoke |
37+
| test_process_freeze_account |
38+
| test_process_thaw_account |
39+
| test_process_mint_to_checked |
40+
| test_process_sync_native |
41+
| test_process_get_account_data_size |
42+
| test_process_initialize_immutable_owner |
43+
| test_process_set_authority_account |
44+
45+
| Failing nodes |
46+
|-----------------------------------------|
47+
| test_process_initialize_account |
48+
| test_process_initialize_account2 |
49+
| test_process_initialize_account3 |
50+
| test_process_initialize_mint_freeze |
51+
| test_process_initialize_mint2_freeze |
52+
| test_process_initialize_mint_no_freeze |
53+
| test_process_initialize_mint2_no_freeze |
54+
55+
| Other issues |
56+
|----------------------------------|
57+
| test_process_amount_to_ui_amount |
58+
| test_process_ui_amount_to_amount |
59+
60+
| Performance issues |
61+
|--------------------------------------------|
62+
| test_process_withdraw_excess_lamports_mint |
63+
| test_process_set_authority_mint |
64+
65+
66+
| Missing Multisig cheat code |
67+
|---------------------------------------------------------|
68+
| test_process_withdraw_excess_lamports_multisig |
69+
| test_process_approve_multisig |
70+
| test_process_approve_checked_multisig |
71+
| test_process_withdraw_excess_lamports_account_multisig |
72+
| test_process_withdraw_excess_lamports_mint_multisig |
73+
| test_process_withdraw_excess_lamports_multisig_multisig |
74+
| test_process_transfer_multisig |
75+
| test_process_mint_to_multisig |
76+
| test_process_burn_multisig |
77+
| test_process_close_account_multisig |
78+
| test_process_transfer_checked_multisig |
79+
| test_process_burn_checked_multisig |
80+
| test_process_revoke_multisig |
81+
| test_process_freeze_account_multisig |
82+
| test_process_thaw_account_multisig |
83+
| test_process_mint_to_checked_multisig |
84+
| test_process_set_authority_account_multisig |
85+
| test_process_set_authority_mint_multisig |
86+
| test_process_initialize_multisig |
87+
| test_process_initialize_multisig2 |
88+
89+
EOF

0 commit comments

Comments
 (0)