Add CI test #1

Merged
roysc merged 3 commits from add-ci into main 2023-09-20 06:07:38 +00:00
2 changed files with 10 additions and 1 deletions
Showing only changes of commit c8d1222922 - Show all commits

View File

@ -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
```

View File

@ -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