aboutsummaryrefslogtreecommitdiff
path: root/tests/block_weight/compare.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/block_weight/compare.py')
-rwxr-xr-xtests/block_weight/compare.py13
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)