From 004bb9433e8e6143968530f9f0f60102aa5f7715 Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Wed, 6 Jan 2016 13:57:59 -0800 Subject: Commit the torture .s files update.py used to just download them in a folder that .gitignore hid. They'll now be checked in instead, under test/, and lkgr will identify which version of LLVM built them. --- check.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'check.py') diff --git a/check.py b/check.py index 69c33621c..0ccad611e 100755 --- a/check.py +++ b/check.py @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import os, sys, subprocess, difflib, json, time +import os, shutil, sys, subprocess, difflib, json, time interpreter = None requested = [] @@ -278,14 +278,15 @@ for s in sorted(os.listdir(os.path.join('test', 'dot_s'))) + sorted(os.listdir(o print '\n[ checking torture testcases... ]\n' import test.experimental.buildbot.link_assembly_files as link_assembly_files -s2wasm_out = os.path.abspath(os.path.join('buildbot', 's2wasm-out')) -if not os.path.isdir(s2wasm_out): - os.mkdir(s2wasm_out) +s2wasm_torture_out = os.path.abspath(os.path.join('test', 's2wasm-torture-out')) +if os.path.isdir(s2wasm_torture_out): + shutil.rmtree(s2wasm_torture_out) +os.mkdir(s2wasm_torture_out) unexpected_result_count = link_assembly_files.run( linker=os.path.abspath(os.path.join('bin', 's2wasm')), - files=os.path.abspath(os.path.join('buildbot', 'torture-s', '*.s')), + files=os.path.abspath(os.path.join('test', 'torture-s', '*.s')), fails=os.path.abspath(os.path.join('test', 's2wasm_known_gcc_test_failures.txt')), - out=s2wasm_out) + out=s2wasm_torture_out) if unexpected_result_count: fail(unexpected_result_count, 0) -- cgit v1.2.3