eth-statediff-compliance/scripts/compare-diffs.sh
Roy Crihfield 655607c32d
All checks were successful
Test / Run unit tests (pull_request) Successful in 13m24s
mktemp linux
2023-09-20 01:32:37 +08: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