[InstCombine] Signed saturation patterns
[llvm-complete.git] / utils / lit / tests / unittest-adaptor.py
blobee2eee4572eebf4b9496e5dd10ecbfa12c27f6db
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 sys
10 import unittest
12 import lit.LitTestCase
14 input_path = sys.argv[1]
15 unittest_suite = lit.LitTestCase.load_test_suite([input_path])
16 runner = unittest.TextTestRunner(verbosity=2)
17 runner.run(unittest_suite)