[llvm-exegesis] Fix missing std::move.
[llvm-complete.git] / utils / lit / tests / unittest-adaptor.py
blob0848cd22baae858309cccc782b8ebe31f735b065
1 # Check the lit adaption to run under unittest.
3 # RUN: %{python} %s %{inputs}/unittest-adaptor 2> %t.err
4 # RUN: FileCheck < %t.err %s
6 # CHECK-DAG: unittest-adaptor :: test-two.txt ... FAIL
7 # CHECK-DAG: unittest-adaptor :: test-one.txt ... ok
9 import unittest
10 import sys
12 import lit
13 import lit.discovery
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)