|
1 |
| -# REQUIRES: github-actions |
2 |
| -# RUN: rm -rf %host_cmake_install_prefix |
3 |
| -# RUN: "%cmake_exe" --build "%llvm_obj_root" --target install |
| 1 | +# REQUIRESgithub-actions |
| 2 | + |
| 3 | +# RUN: echo "test full install" | tee %t |
| 4 | +# CHECK: test full install |
| 5 | + |
| 6 | +# RUN: rm -rf "%host_cmake_install_prefix" |
| 7 | + |
| 8 | +# RUN: "%cmake_exe" --build "%llvm_obj_root" --target install -j | tee -a %t |
| 9 | + |
4 | 10 | # RUN: "%cmake_exe" "%mlir_src_root/examples/standalone" -G "%cmake_generator" \
|
5 | 11 | # RUN: -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc \
|
6 | 12 | # RUN: -DCMAKE_CXX_COMPILER_LAUNCHER=%cmake_cxx_compiler_launcher -DCMAKE_C_COMPILER_LAUNCHER=%cmake_c_compiler_launcher \
|
7 |
| -# RUN: -DLLVM_ENABLE_LIBCXX=%enable_libcxx -DMLIR_DIR="%host_cmake_install_prefix" \ |
| 13 | +# RUN: -DLLVM_ENABLE_LIBCXX=%enable_libcxx \ |
| 14 | +# RUN: -DLLVM_EXTERNAL_LIT="%llvm_obj_root/bin/llvm-lit" \ |
| 15 | +# RUN: -DMLIR_DIR="%host_cmake_install_prefix/lib/cmake/mlir" \ |
| 16 | +# RUN: -DLLVM_DIR="%host_cmake_install_prefix/lib/cmake/llvm" \ |
8 | 17 | # RUN: -DLLVM_USE_LINKER=%llvm_use_linker \
|
9 | 18 | # RUN: -DPython3_EXECUTABLE=%python \
|
10 |
| -# RUN: -DPython_EXECUTABLE=%python |
11 |
| -# RUN: "%cmake_exe" --build . --target check-standalone | tee %t |
| 19 | +# RUN: -DPython_EXECUTABLE=%python | tee -a %t |
| 20 | + |
| 21 | +# RUN: "%cmake_exe" --build . --target check-standalone -j | tee -a %t |
| 22 | + |
| 23 | +# CHECK: Passed |
| 24 | +# CHECK-NOT: Failed |
| 25 | +# UNSUPPORTED: target={{.*(windows|android).*}} |
| 26 | + |
| 27 | +# RUN: rm -rf "%host_cmake_install_prefix" |
| 28 | + |
| 29 | +# RUN: echo "test install distribution" | tee -a %t |
| 30 | +# CHECK: test install distribution |
| 31 | + |
| 32 | +# RUN: "%cmake_exe" "%llvm_src_root" -DCMAKE_BUILD_TYPE=%cmake_build_type -B "%llvm_obj_root" \ |
| 33 | +# RUN: -DLLVM_DISTRIBUTION_COMPONENTS="llvm-headers;llvm-libraries;cmake-exports;FileCheck;count;not;mlir-headers;mlir-libraries;mlir-cmake-exports;mlir-tblgen;mlir-opt;mlir-python-sources" | tee -a %t |
| 34 | + |
| 35 | +# RUN: "%cmake_exe" --build "%llvm_obj_root" --target install-distribution -j | tee -a %t |
| 36 | + |
| 37 | +# RUN: "%cmake_exe" "%mlir_src_root/examples/standalone" -G "%cmake_generator" \ |
| 38 | +# RUN: -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc \ |
| 39 | +# RUN: -DCMAKE_CXX_COMPILER_LAUNCHER=%cmake_cxx_compiler_launcher -DCMAKE_C_COMPILER_LAUNCHER=%cmake_c_compiler_launcher \ |
| 40 | +# RUN: -DLLVM_ENABLE_LIBCXX=%enable_libcxx \ |
| 41 | +# RUN: -DLLVM_EXTERNAL_LIT="%llvm_obj_root/bin/llvm-lit" \ |
| 42 | +# RUN: -DMLIR_DIR="%host_cmake_install_prefix/lib/cmake/mlir" \ |
| 43 | +# RUN: -DLLVM_DIR="%host_cmake_install_prefix/lib/cmake/llvm" \ |
| 44 | +# RUN: -DLLVM_USE_LINKER=%llvm_use_linker \ |
| 45 | +# RUN: -DPython3_EXECUTABLE=%python \ |
| 46 | +# RUN: -DPython_EXECUTABLE=%python | tee -a %t |
| 47 | + |
| 48 | +# RUN: "%cmake_exe" --build . --target check-standalone -j | tee -a %t |
| 49 | + |
12 | 50 | # RUN: FileCheck --input-file=%t %s
|
13 | 51 |
|
14 |
| -# Note: The number of checked tests is not important. The command will fail |
15 |
| -# if any fail. |
16 | 52 | # CHECK: Passed
|
17 | 53 | # CHECK-NOT: Failed
|
18 | 54 | # UNSUPPORTED: target={{.*(windows|android).*}}
|
0 commit comments