Lightweight String check Utility (#16858)
authorElias Ellison <eellison@fb.com>
Tue, 19 Feb 2019 20:25:30 +0000 (12:25 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 19 Feb 2019 20:31:57 +0000 (12:31 -0800)
commit89df22e57b9be274174ec2660e8707f0e0a1fa4b
tree2ff4d7149d5931e9db20a1fb2b220b9a2d7b9ab5
parent82aa51114677b4d2187e1cc2d36f32158b7dddc0
Lightweight String check Utility (#16858)

Summary:
light weight implementation of LLVM filecheck utility. Currently only handles string matching - regexes & saving a regex to a variable name can be added as needed.

Current intended usage is through FileCheckBuilder python handle, and is shown in the tests.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16858

Differential Revision: D14096244

Pulled By: eellison

fbshipit-source-id: c7c8d1457691c105e6ccbb3c1a378d96baac2569
setup.py
test/test_jit.py
tools/build_variables.py
torch/CMakeLists.txt
torch/csrc/jit/script/init.cpp
torch/csrc/jit/testing/file_check.cpp [new file with mode: 0644]
torch/csrc/jit/testing/file_check.h [new file with mode: 0644]
torch/testing/__init__.py