From b0b2507717ca904ffe50248a44a5c653946b6732 Mon Sep 17 00:00:00 2001 From: Marius Brehler Date: Fri, 29 May 2020 00:31:28 +0200 Subject: [PATCH] [mlir] Add test to check if standalone dialect is registered Summary: Add a test to check if the standalone dialect is registered within standalone-opt. Similar to the mlir-opt commandline.mlir test. Reviewers: Kayjukh, stephenneuendorffer Reviewed By: Kayjukh Subscribers: mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, grosul1, frgossen, jurahul, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80764 --- mlir/examples/standalone/test/Standalone/standalone-opt.mlir | 3 +++ mlir/test/Examples/standalone/test.toy | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 mlir/examples/standalone/test/Standalone/standalone-opt.mlir diff --git a/mlir/examples/standalone/test/Standalone/standalone-opt.mlir b/mlir/examples/standalone/test/Standalone/standalone-opt.mlir new file mode 100644 index 0000000..fac0814 --- /dev/null +++ b/mlir/examples/standalone/test/Standalone/standalone-opt.mlir @@ -0,0 +1,3 @@ +// RUN: standalone-opt --show-dialects | FileCheck %s +// CHECK: Registered Dialects: +// CHECK: standalone diff --git a/mlir/test/Examples/standalone/test.toy b/mlir/test/Examples/standalone/test.toy index 034fd93..1614279 100644 --- a/mlir/test/Examples/standalone/test.toy +++ b/mlir/test/Examples/standalone/test.toy @@ -1,4 +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 | tee %t | FileCheck %s -# CHECK: Expected Passes: 2 +# CHECK: Expected Passes: 3 # UNSUPPORTED: windows, android -- 2.7.4