summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/Inputs/unittest-adaptor
Commit message (Collapse)AuthorAgeFilesLines
* [lit] Add back LitTestCaseJulian Lettner2019-10-153-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This essentially reverts a commit [1] that removed the adaptor for Python unittests. The code has been slightly refactored to make it more additive: all code is contained in LitTestCase.py. Usage sites will require a small adaption: ``` [old] import lit.discovery ... test_suite = lit.discovery.load_test_suite(...) [new] import lit.LitTestCase ... test_suite = lit.LitTestCase.load_test_suite(...) ``` This was put back on request by Daniel Dunbar, since I wrongly assumed that the functionality is unused. At least llbuild still uses this [2]. [1] 70ca752ccf6a8f362aea25ccd3ee2bbceca93b20 [2] https://github.com/apple/swift-llbuild/blob/master/utils/Xcode/LitXCTestAdaptor/LitTests.py#L16 Reviewed By: ddunbar Differential Revision: https://reviews.llvm.org/D69002 llvm-svn: 374947
* [lit] Remove LitTestCaseJulian Lettner2019-02-163-8/+0
| | | | | | | | | | | | | From the docs: `class LitTestCase(unittest.TestCase)` LitTestCase is an adaptor for providing a 'unittest' compatible interface to 'lit' tests so that we can run lit tests with standard python test runners. It does not seem to be used anywhere. Differential Revision: https://reviews.llvm.org/D58264 llvm-svn: 354188
* [lit] Update lit's own tests to use lit_config and lit package, as appropriate.Daniel Dunbar2013-08-091-0/+1
| | | | llvm-svn: 188107
* [lit] Move unittest adaptor code into discovery module.Daniel Dunbar2013-01-313-0/+7
- Also, add a test for it. llvm-svn: 174019
OpenPOWER on IntegriCloud