eth-statediff-compliance/scripts/compare-diffs.sh
Roy Crihfield ef7c42a214
Some checks failed
Test / Run unit tests (push) Failing after 5m48s
Add CI test (#1)
Simple test run comparing statediffs of the first 4 blocks of mainnet.

Reviewed-on: #1
2023-09-20 06:07:22 +00:00

16 lines
322 B
Bash
Executable File

#!/bin/bash
set -e
PLUGIN_OUTPUT=$(mktemp -d -t plugin_XXXX)
GETH_OUTPUT=$(mktemp -d -t geth_XXXX)
./dumpdiff.plugeth $PLUGIN_OUTPUT
./dumpdiff.geth $GETH_OUTPUT
for file in $(ls $PLUGIN_OUTPUT)
do
diff "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file"
echo Files match: "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file"
done