-
Notifications
You must be signed in to change notification settings - Fork 703
Expand file tree
/
Copy pathtesting-suite-gen.sh
More file actions
31 lines (24 loc) · 943 Bytes
/
Copy pathtesting-suite-gen.sh
File metadata and controls
31 lines (24 loc) · 943 Bytes
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
#!/bin/bash
# Exit immediately if a command exits with a non-zero status
set -e
# Define the list of programs
PROGRAMS=("chess" "fibonacci" "json" "regex" "rsp" "ssz-withdrawals" "tendermint")
# Iterate through each program
for program in "${PROGRAMS[@]}"; do
program_name=$program
script_dir="${program}/script"
echo "Processing $program_name"
# Check if the script directory exists
if [ -d "$script_dir" ]; then
# Navigate to the script directory
cd "$script_dir"
# Run the cargo command and upload files to AWS S3
SP1_DUMP=1 cargo run --release -- --prove
aws s3 cp stdin.bin "s3://sp1-testing-suite/v4/$program_name/stdin.bin"
aws s3 cp program.bin "s3://sp1-testing-suite/v4/$program_name/program.bin"
# Return to the root directory
cd - > /dev/null
else
echo "Directory $script_dir does not exist. Skipping $program_name."
fi
done