Alex Zinenko | 3183394 | 2019-05-17 22:03:39 | [diff] [blame] | 1 | add_subdirectory(EDSC) |
Alex Zinenko | 6804cf2 | 2019-05-21 14:22:35 | [diff] [blame] | 2 | add_subdirectory(mlir-cpu-runner) |
| 3 | add_subdirectory(SDBM) |
Nicolas Vasilache | dac75ae | 2019-06-24 21:35:21 | [diff] [blame] | 4 | add_subdirectory(lib) |
Nicolas Vasilache | 5c64d2a | 2019-05-13 17:59:04 | [diff] [blame] | 5 | |
Mehdi Amini | 38b71d6 | 2019-04-02 17:02:07 | [diff] [blame] | 6 | llvm_canonicalize_cmake_booleans( |
| 7 | LLVM_BUILD_EXAMPLES |
| 8 | ) |
| 9 | |
Nicolas Vasilache | 6aa5cc8 | 2019-05-15 16:26:27 | [diff] [blame] | 10 | # Passed to lit.site.cfg.py.in to set up the path where to find the libraries |
| 11 | # for linalg integration tests. |
Nicolas Vasilache | b628194 | 2019-08-20 00:11:12 | [diff] [blame] | 12 | set(MLIR_DIALECT_LINALG_INTEGRATION_TEST_LIB_DIR ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}) |
Nicolas Vasilache | 6aa5cc8 | 2019-05-15 16:26:27 | [diff] [blame] | 13 | |
Stephan Herhut | e8b21a7 | 2019-07-04 14:49:52 | [diff] [blame] | 14 | # Passed to lit.site.cfg.py.in to set up the path where to find the libraries |
| 15 | # for the mlir cuda runner tests. |
| 16 | set(MLIR_CUDA_WRAPPER_LIBRARY_DIR ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}) |
| 17 | |
Jacques Pienaar | 1273af2 | 2019-03-30 05:10:12 | [diff] [blame] | 18 | configure_lit_site_cfg( |
| 19 | ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in |
| 20 | ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py |
| 21 | MAIN_CONFIG |
| 22 | ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py |
| 23 | ) |
| 24 | configure_lit_site_cfg( |
| 25 | ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in |
| 26 | ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py |
| 27 | MAIN_CONFIG |
| 28 | ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py |
| 29 | ) |
| 30 | |
| 31 | set(MLIR_TEST_DEPENDS |
| 32 | FileCheck count not |
| 33 | MLIRUnitTests |
| 34 | mlir-cpu-runner |
Alex Zinenko | 29c7929 | 2019-05-22 19:13:54 | [diff] [blame] | 35 | mlir-edsc-builder-api-test |
Jacques Pienaar | 1273af2 | 2019-03-30 05:10:12 | [diff] [blame] | 36 | mlir-opt |
Alex Zinenko | 6804cf2 | 2019-05-21 14:22:35 | [diff] [blame] | 37 | mlir-sdbm-api-test |
Jacques Pienaar | 1273af2 | 2019-03-30 05:10:12 | [diff] [blame] | 38 | mlir-tblgen |
| 39 | mlir-translate |
Nicolas Vasilache | a8a4d35 | 2019-06-11 19:09:50 | [diff] [blame] | 40 | cblas |
| 41 | cblas_interface |
Nicolas Vasilache | 3b4f133 | 2019-10-07 16:06:08 | [diff] [blame] | 42 | mlir_runner_utils |
Jacques Pienaar | 1273af2 | 2019-03-30 05:10:12 | [diff] [blame] | 43 | ) |
| 44 | |
Mehdi Amini | 38b71d6 | 2019-04-02 17:02:07 | [diff] [blame] | 45 | if(LLVM_BUILD_EXAMPLES) |
| 46 | list(APPEND MLIR_TEST_DEPENDS |
Nicolas Vasilache | 56c7a95 | 2019-04-29 19:11:58 | [diff] [blame] | 47 | linalg1-opt |
Mehdi Amini | 38b71d6 | 2019-04-02 17:02:07 | [diff] [blame] | 48 | toyc-ch1 |
Mehdi Amini | 213dda6 | 2019-04-02 20:11:20 | [diff] [blame] | 49 | toyc-ch2 |
Mehdi Amini | 092f3fa | 2019-04-04 02:16:32 | [diff] [blame] | 50 | toyc-ch3 |
Mehdi Amini | d33a9dc | 2019-04-05 01:31:31 | [diff] [blame] | 51 | toyc-ch4 |
Mehdi Amini | c39592b | 2019-04-09 06:00:49 | [diff] [blame] | 52 | toyc-ch5 |
River Riddle | 0372eb4 | 2019-10-17 21:21:44 | [diff] [blame^] | 53 | toyc-ch6 |
Mehdi Amini | 38b71d6 | 2019-04-02 17:02:07 | [diff] [blame] | 54 | ) |
| 55 | endif() |
| 56 | |
Stephan Herhut | e8b21a7 | 2019-07-04 14:49:52 | [diff] [blame] | 57 | if(MLIR_CUDA_RUNNER_ENABLED) |
| 58 | list(APPEND MLIR_TEST_DEPENDS |
| 59 | mlir-cuda-runner |
| 60 | ) |
| 61 | endif() |
| 62 | |
Jacques Pienaar | 1273af2 | 2019-03-30 05:10:12 | [diff] [blame] | 63 | add_lit_testsuite(check-mlir "Running the MLIR regression tests" |
| 64 | ${CMAKE_CURRENT_BINARY_DIR} |
| 65 | DEPENDS ${MLIR_TEST_DEPENDS} |
| 66 | ) |
| 67 | set_target_properties(check-mlir PROPERTIES FOLDER "Tests") |
| 68 | |
| 69 | add_lit_testsuites(MLIR ${CMAKE_CURRENT_SOURCE_DIR} |
| 70 | DEPENDS ${MLIR_TEST_DEPS} |
| 71 | ) |