mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
c4e1589a7b
llvm-svn: 309144
19 lines
467 B
Python
19 lines
467 B
Python
# Check the lit adaption to run under unittest.
|
|
#
|
|
# RUN: %{python} %s %{inputs}/unittest-adaptor 2> %t.err
|
|
# RUN: FileCheck < %t.err %s
|
|
#
|
|
# CHECK-DAG: unittest-adaptor :: test-two.txt ... FAIL
|
|
# CHECK-DAG: unittest-adaptor :: test-one.txt ... ok
|
|
|
|
import unittest
|
|
import sys
|
|
|
|
import lit
|
|
import lit.discovery
|
|
|
|
input_path = sys.argv[1]
|
|
unittest_suite = lit.discovery.load_test_suite([input_path])
|
|
runner = unittest.TextTestRunner(verbosity=2)
|
|
runner.run(unittest_suite)
|