diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-03-04 12:09:12 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-03-04 12:09:13 +0200 |
commit | 55305559c1ce10ec5d5d5a1c5d31e5056b8a9dd6 (patch) | |
tree | feb811a9f75c43e49e8dd3fa24492a8b96770976 /tests/block_weight/compare.py | |
parent | Merge pull request #5122 (diff) | |
parent | ArticMine's new block weight algorithm (diff) | |
download | monero-55305559c1ce10ec5d5d5a1c5d31e5056b8a9dd6.tar.xz |
Merge pull request #5124
b8787f43 ArticMine's new block weight algorithm (moneromooo-monero)
Diffstat (limited to '')
-rwxr-xr-x | tests/block_weight/compare.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/block_weight/compare.py b/tests/block_weight/compare.py new file mode 100755 index 000000000..c6be05206 --- /dev/null +++ b/tests/block_weight/compare.py @@ -0,0 +1,13 @@ +#!/usr/bin/python + +import sys +import subprocess + +print 'running: ', sys.argv[1] +S0 = subprocess.check_output(sys.argv[1], stderr=subprocess.STDOUT) +print 'running: ', sys.argv[2] +S1 = subprocess.check_output(sys.argv[2], stderr=subprocess.STDOUT) +print 'comparing' +if S0 != S1: + sys.exit(1) +sys.exit(0) |