[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
This commit is contained in:
Marius Brehler 2020-05-29 00:31:28 +02:00 committed by Jean-Michel Gorius
parent bce702e5f2
commit b0b2507717
2 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1,3 @@
// RUN: standalone-opt --show-dialects | FileCheck %s
// CHECK: Registered Dialects:
// CHECK: standalone

View File

@ -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