[PATCH] D78656: [MLIR] Add a tests for out of tree dialect example.
Stephen Neuendorffer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 29 12:55:07 PDT 2020
stephenneuendorffer edited the summary of this revision.
stephenneuendorffer updated this revision to Diff 260994.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78656/new/
https://reviews.llvm.org/D78656
Files:
mlir/test/Examples/standalone/lit.local.cfg
mlir/test/Examples/standalone/test.toy
mlir/test/lit.cfg.py
mlir/test/lit.site.cfg.py.in
Index: mlir/test/lit.site.cfg.py.in
===================================================================
--- mlir/test/lit.site.cfg.py.in
+++ mlir/test/lit.site.cfg.py.in
@@ -23,6 +23,7 @@
config.host_os = "@HOST_OS@"
config.host_cc = "@HOST_CC@"
config.host_cxx = "@HOST_CXX@"
+config.host_cmake = "@CMAKE_COMMAND@"
# Note: ldflags can contain double-quoted paths, so must use single quotes here.
config.host_ldflags = '@HOST_LDFLAGS@'
config.llvm_use_sanitizer = "@LLVM_USE_SANITIZER@"
Index: mlir/test/lit.cfg.py
===================================================================
--- mlir/test/lit.cfg.py
+++ mlir/test/lit.cfg.py
@@ -31,6 +31,7 @@
config.substitutions.append(('%PATH%', config.environment['PATH']))
config.substitutions.append(('%shlibext', config.llvm_shlib_ext))
+config.substitutions.append(("%mlir_src_root", config.mlir_src_root))
llvm_config.with_system_environment(
['HOME', 'INCLUDE', 'LIB', 'TMP', 'TEMP'])
Index: mlir/test/Examples/standalone/test.toy
===================================================================
--- /dev/null
+++ mlir/test/Examples/standalone/test.toy
@@ -0,0 +1,4 @@
+# RUN: %cmake %mlir_src_root/examples/standalone -DCMAKE_CXX_COMPILER=%host_cxx -DCMAKE_C_COMPILER=%host_cc -DMLIR_DIR=%llvm_lib_dir/cmake/mlir ; %cmake --build . --target check-standalone-opt | tee %t | FileCheck %s
+
+# CHECK: Expected Passes: 1
+# UNSUPPORTED: windows, android
Index: mlir/test/Examples/standalone/lit.local.cfg
===================================================================
--- /dev/null
+++ mlir/test/Examples/standalone/lit.local.cfg
@@ -0,0 +1,3 @@
+config.substitutions.append(("%cmake", config.host_cmake))
+config.substitutions.append(("%host_cxx", config.host_cxx))
+config.substitutions.append(("%host_cc", config.host_cc))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78656.260994.patch
Type: text/x-patch
Size: 1800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200429/86fb940a/attachment.bin>
More information about the llvm-commits
mailing list