Skip to content

Commit

Permalink
update batch run scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
chyanju committed Sep 2, 2022
1 parent 23d72af commit b7d6d0c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
19 changes: 19 additions & 0 deletions batch-run-ecne.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
# usage: this.sh <timeout> <ecne_path> <log_path> <target_folder>
# example: ./batch-run-ecne.sh 600000 ../EcneProject/ ./logs/ecne-circomlib ./benchmarks/circomlib-cff5ab6/

otime=$1
ecnepath=$2
logpath=$3
targetfolder=$4

mkdir -p ${logpath}

for fp in ${targetfolder}/*.r1cs
do
fn=$(basename ${fp})
bn="${fn%.*}"
bp="${fp%.*}"
echo "=================== checking: ${fn} ==================="
timeout ${otime} julia --project=${ecnepath} ${ecnepath}/src/Ecne.jl --r1cs ${fp} --name ooo --sym ${bp}.sym > ${logpath}/${bn}.log 2>&1
done
9 changes: 7 additions & 2 deletions batch-run-picus.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
#!/bin/bash
# usage: this.sh <timeout> <log_path> <target_folder>
# example: ./batch-run-picus.sh 600000 ./logs/test/ ./benchmarks/circomlib-cff5ab6/

otime=$1
targetfolder=$2
logpath=$2
targetfolder=$3

mkdir -p ${logpath}

for fp in ${targetfolder}/*.r1cs
do
fn=$(basename ${fp})
bn="${fn%.*}"
bp="${fp%.*}"
echo "=================== checking: ${fn} ==================="
timeout ${otime} racket ./test-pp-uniqueness.rkt --timeout 5000 --solver cvc5 --initlvl 0 --weak --r1cs ${fp} > ./logs/${bn}.log 2>&1
timeout ${otime} racket ./test-pp-uniqueness.rkt --timeout 5000 --solver cvc5 --initlvl 0 --weak --r1cs ${fp} > ${logpath}/${bn}.log 2>&1
done

0 comments on commit b7d6d0c

Please sign in to comment.