Add CI test #1
@ -3,3 +3,11 @@
|
|||||||
Tooling to directly verify and benchmark the results of go-ethereum state diffs.
|
Tooling to directly verify and benchmark the results of go-ethereum state diffs.
|
||||||
|
|
||||||
Specifically, compares `plugeth-statediff`- and `go-ethereum/statediff`-built diffs.
|
Specifically, compares `plugeth-statediff`- and `go-ethereum/statediff`-built diffs.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```
|
||||||
|
make dumpdiff.plugeth dumpdiff.geth
|
||||||
|
|
||||||
|
./scripts/compare-diffs.sh
|
||||||
|
```
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -ex
|
set -e
|
||||||
|
|
||||||
PLUGIN_OUTPUT=$(mktemp -d -t plugin_)
|
PLUGIN_OUTPUT=$(mktemp -d -t plugin_)
|
||||||
GETH_OUTPUT=$(mktemp -d -t geth_)
|
GETH_OUTPUT=$(mktemp -d -t geth_)
|
||||||
@ -11,4 +11,5 @@ GETH_OUTPUT=$(mktemp -d -t geth_)
|
|||||||
for file in $(ls $PLUGIN_OUTPUT)
|
for file in $(ls $PLUGIN_OUTPUT)
|
||||||
do
|
do
|
||||||
diff "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file"
|
diff "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file"
|
||||||
|
echo Files match: "$PLUGIN_OUTPUT/$file" "$GETH_OUTPUT/$file"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user