From 7a46e15efd13a15788278627fef3394a8fd0e349 Mon Sep 17 00:00:00 2001 From: Federico Bond Date: Tue, 6 Dec 2016 19:21:10 -0300 Subject: Rename isolateTests.py script to isolate_tests.py --- scripts/isolateTests.py | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 scripts/isolateTests.py (limited to 'scripts/isolateTests.py') 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]) -- cgit v1.2.3