Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: third_party/lit/tests/unittest-adaptor.py

Issue 1663053003: [fusl] Add llvm's lit tool to third_party (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: move down a dir Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/lit/tests/test-output.py ('k') | third_party/lit/tests/usage.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Check the lit adaption to run under unittest.
2 #
3 # RUN: %{python} %s %{inputs}/unittest-adaptor 2> %t.err
4 # RUN: FileCheck < %t.err %s
5 #
6 # CHECK-DAG: unittest-adaptor :: test-two.txt ... FAIL
7 # CHECK-DAG: unittest-adaptor :: test-one.txt ... ok
8
9 import unittest
10 import sys
11
12 import lit
13 import lit.discovery
14
15 input_path = sys.argv[1]
16 unittest_suite = lit.discovery.load_test_suite([input_path])
17 runner = unittest.TextTestRunner(verbosity=2)
18 runner.run(unittest_suite)
OLDNEW
« no previous file with comments | « third_party/lit/tests/test-output.py ('k') | third_party/lit/tests/usage.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698