Michael Kruse | b55f751 | 2025-02-16 14:39:52 | [diff] [blame] | 1 | # -*- Python -*- |
| 2 | |
| 3 | import os |
| 4 | |
| 5 | import lit.formats |
| 6 | |
| 7 | # name: The name of this test suite. |
| 8 | config.name = "flang-rt-OldUnit" |
| 9 | |
| 10 | # suffixes: A list of file extensions to treat as test files. |
| 11 | # On Windows, ".exe" also matches the GTests and will execited redundantly. |
| 12 | config.suffixes = [".test", ".exe"] |
| 13 | |
| 14 | # test_source_root: The root path where unit test binaries are located. |
| 15 | config.test_source_root = os.path.join(config.flangrt_binary_dir, "unittests") |
| 16 | |
| 17 | # test_exec_root: The root path where tests should be run. |
| 18 | # lit writes a '.lit_test_times.txt' file into this directory. |
| 19 | config.test_exec_root = config.flang_rt_binary_test_dir |
| 20 | |
| 21 | # testFormat: The test format to use to interpret tests. |
| 22 | config.test_format = lit.formats.ExecutableTest() |