Skip to content

Commit b682c08

Browse files
committed
add test.install-distribution-dir.toy
1 parent f26de06 commit b682c08

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

mlir/test/Examples/standalone/lit.local.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ config.substitutions.append(("%enable_libcxx", config.enable_libcxx))
1111
config.substitutions.append(("%mlir_cmake_dir", config.mlir_cmake_dir))
1212
config.substitutions.append(("%llvm_use_linker", config.llvm_use_linker))
1313
config.substitutions.append(("%llvm_obj_root", config.llvm_obj_root))
14+
config.substitutions.append(("%llvm_src_root", config.llvm_src_root))
1415
config.substitutions.append(("%host_cmake_install_prefix", config.host_cmake_install_prefix))

mlir/test/Examples/standalone/test.install-dir.toy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# REQUIRES: github-actions
2-
# RUN: "%cmake_exe" --build %llvm_obj_root --target install
2+
# RUN: "%cmake_exe" --build "%llvm_obj_root" --target install
33
# RUN: "%cmake_exe" "%mlir_src_root/examples/standalone" -G "%cmake_generator" \
44
# RUN: -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc \
5-
# RUN: -DLLVM_ENABLE_LIBCXX=%enable_libcxx -DMLIR_DIR=%host_cmake_install_prefix \
5+
# RUN: -DLLVM_ENABLE_LIBCXX=%enable_libcxx -DMLIR_DIR="%host_cmake_install_prefix" \
66
# RUN: -DLLVM_USE_LINKER=%llvm_use_linker \
77
# RUN: -DPython3_EXECUTABLE=%python \
88
# RUN: -DPython_EXECUTABLE=%python
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# REQUIRES: github-actions
2+
# RUN: "%cmake_exe" "%llvm_src_root" -DLLVM_DISTRIBUTION_COMPONENTS="llvm-headers;llvm-libraries;cmake-exports;FileCheck;count;not;mlir-headers;mlir-libraries;mlir-cmake-exports;mlir-tblgen;mlir-python-sources"
3+
# RUN: "%cmake_exe" --build "%llvm_obj_root" --target install-distribution
4+
# RUN: "%cmake_exe" "%mlir_src_root/examples/standalone" -G "%cmake_generator" \
5+
# RUN: -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc \
6+
# RUN: -DLLVM_ENABLE_LIBCXX=%enable_libcxx -DMLIR_DIR=%host_cmake_install_prefix \
7+
# RUN: -DLLVM_USE_LINKER=%llvm_use_linker \
8+
# RUN: -DPython3_EXECUTABLE=%python \
9+
# RUN: -DPython_EXECUTABLE=%python
10+
# RUN: "%cmake_exe" --build . --target check-standalone | tee %t
11+
# RUN: FileCheck --input-file=%t %s
12+
13+
# Note: The number of checked tests is not important. The command will fail
14+
# if any fail.
15+
# CHECK: Passed
16+
# CHECK-NOT: Failed
17+
# UNSUPPORTED: target={{.*(windows|android).*}}

0 commit comments

Comments
 (0)