mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-22 22:44:47 +03:00
added string search instead of line count
This commit is contained in:
parent
a8cea5c894
commit
8eba9fb21d
@ -6,12 +6,11 @@ export PEDERSEN_HASH_CONSTRAINTS=1539
|
||||
|
||||
# 1. build
|
||||
# 2. find lines with constraint number
|
||||
# 3. find lines with $PEDERSEN_HASH_CONSTRAINTS
|
||||
# 4. count lines
|
||||
# 4.Er if result is 0 -> constraint number changed
|
||||
# 3. search this line for CONSTRAINTS number
|
||||
# 4.Er if result is 0 -> constraint number changed exit 1
|
||||
# 4.Ok if result is 1 -> all good
|
||||
|
||||
[[ $($LEO build | grep "Number of constraints" | grep $PEDERSEN_HASH_CONSTRAINTS | wc -l) -eq 1 ]] || {
|
||||
[[ $(cargo run -q -- build | grep constraints) == *"$PEDERSEN_HASH_CONSTRAINTS"* ]] || {
|
||||
echo >&2 "Number of constraints for Pedersen Hash is not $PEDERSEN_HASH_CONSTRAINTS";
|
||||
exit 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user