flang/test/NonGtestUnit/lit.cfg.py
raw| 1 | import os |
| 2 | |
| 3 | import lit.Test |
| 4 | |
| 5 | config.name = "flang-OldUnit" |
| 6 | |
| 7 | config.suffixes = [".test"] |
| 8 | |
| 9 | config.test_source_root = os.path.join(config.flang_obj_root, "unittests") |
| 10 | config.test_exec_root = config.test_source_root |
| 11 | |
| 12 | config.test_format = lit.formats.ExecutableTest() |
| 13 | |
| 14 | path = os.path.pathsep.join( |
| 15 | ( |
| 16 | config.flang_libs_dir, |
| 17 | config.llvm_libs_dir, |
| 18 | config.environment.get("LD_LIBRARY_PATH", ""), |
| 19 | ) |
| 20 | ) |
| 21 | config.environment["LD_LIBRARY_PATH"] = path |