From 800c3385348537b93d986053438e1789ceab10be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Sat, 23 Jan 2021 18:07:53 +0100 Subject: [PATCH] Scripts for generating and comparing bytecode reports for solc-bin binaries --- .../bytecode_reports_for_modified_binaries.sh | 133 ++++++++++++++++++ scripts/solc-bin/compare_bytecode_reports.sh | 64 +++++++++ 2 files changed, 197 insertions(+) create mode 100755 scripts/solc-bin/bytecode_reports_for_modified_binaries.sh create mode 100755 scripts/solc-bin/compare_bytecode_reports.sh diff --git a/scripts/solc-bin/bytecode_reports_for_modified_binaries.sh b/scripts/solc-bin/bytecode_reports_for_modified_binaries.sh new file mode 100755 index 000000000..111c19637 --- /dev/null +++ b/scripts/solc-bin/bytecode_reports_for_modified_binaries.sh @@ -0,0 +1,133 @@ +#!/usr/bin/env bash + +# ------------------------------------------------------------------------------ +# Determines versions of all release binaries from solc-bin repo modified in the +# specified commit range, finds all release binaries from one, selected platform +# that match these versions and uses them to produce bytecode reports. +# +# The script is meant to be backwards-compatible with older versions of the +# compiler. Reports are generated via the CLI interface (rather than Standard +# JSON) in case of native binaries because the JSON interface was not available +# in very old versions. +# +# The script creates one report per binary and file names follow the pattern +# 'report-.txt'. +# +# Usage: +#