aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/isolateTests.py
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-12-07 18:29:37 +0800
committerGitHub <noreply@github.com>2016-12-07 18:29:37 +0800
commit740294f65ac78d57989820b5efe45f787069bc9d (patch)
treeab623e6d191827d1e79150f62f8b0450216144c9 /scripts/isolateTests.py
parentfd7561ed609c07ea38b8647982121d73be9224f7 (diff)
parent72f9a4a73eba906f349ccb3e577899d0f9add963 (diff)
downloaddexon-solidity-740294f65ac78d57989820b5efe45f787069bc9d.tar
dexon-solidity-740294f65ac78d57989820b5efe45f787069bc9d.tar.gz
dexon-solidity-740294f65ac78d57989820b5efe45f787069bc9d.tar.bz2
dexon-solidity-740294f65ac78d57989820b5efe45f787069bc9d.tar.lz
dexon-solidity-740294f65ac78d57989820b5efe45f787069bc9d.tar.xz
dexon-solidity-740294f65ac78d57989820b5efe45f787069bc9d.tar.zst
dexon-solidity-740294f65ac78d57989820b5efe45f787069bc9d.zip
Merge pull request #1489 from federicobond/isolate-tests
Cleanup and fix scripts/isolate_tests.py
Diffstat (limited to 'scripts/isolateTests.py')
-rwxr-xr-xscripts/isolateTests.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/isolateTests.py b/scripts/isolateTests.py
deleted file mode 100755
index fed779d3..00000000
--- a/scripts/isolateTests.py
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/python
-#
-# This script reads C++ source files and writes all
-# multi-line strings into individual files.
-# This can be used to extract the Solidity test cases
-# into files for e.g. fuzz testing as
-# scripts/isolateTests.py tests/libsolidity/SolidityEndToEndTest.cpp
-
-import sys
-lines = sys.stdin.read().split('\n')
-inside = False
-tests = []
-for l in lines:
- if inside:
- if l.strip().endswith(')";'):
- inside = False
- else:
- tests[-1] += l + '\n'
- else:
- if l.strip().endswith('R"('):
- inside = True
- tests += ['']
-for i in range(len(tests)):
- open('test%d.sol' % i, 'w').write(tests[i])