diff options
author | Jacques Pienaar <jpienaar@google.com> | 2019-03-29 22:10:12 -0700 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2019-03-30 11:23:22 -0700 |
commit | 1273af232cd103faad15890687d506eae0d9f014 (patch) | |
tree | 540ba5dc899f26e2726afccb0b083650b4e4d2eb /mlir/test/CMakeLists.txt | |
parent | 6f24bf82f971d679cf209e4c1538ca69ded62ba5 (diff) | |
download | llvm-1273af232cd103faad15890687d506eae0d9f014.zip llvm-1273af232cd103faad15890687d506eae0d9f014.tar.gz llvm-1273af232cd103faad15890687d506eae0d9f014.tar.bz2 |
Add build files and update README.
* Add initial version of build files;
* Update README with instructions to download and build MLIR from github;
--
PiperOrigin-RevId: 241102092
Diffstat (limited to 'mlir/test/CMakeLists.txt')
-rw-r--r-- | mlir/test/CMakeLists.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/mlir/test/CMakeLists.txt b/mlir/test/CMakeLists.txt new file mode 100644 index 0000000..8e3f594 --- /dev/null +++ b/mlir/test/CMakeLists.txt @@ -0,0 +1,31 @@ +configure_lit_site_cfg( + ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in + ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py + MAIN_CONFIG + ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py + ) +configure_lit_site_cfg( + ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.py.in + ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg.py + MAIN_CONFIG + ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.cfg.py + ) + +set(MLIR_TEST_DEPENDS + FileCheck count not + MLIRUnitTests + mlir-cpu-runner + mlir-opt + mlir-tblgen + mlir-translate + ) + +add_lit_testsuite(check-mlir "Running the MLIR regression tests" + ${CMAKE_CURRENT_BINARY_DIR} + DEPENDS ${MLIR_TEST_DEPENDS} + ) +set_target_properties(check-mlir PROPERTIES FOLDER "Tests") + +add_lit_testsuites(MLIR ${CMAKE_CURRENT_SOURCE_DIR} + DEPENDS ${MLIR_TEST_DEPS} +) |