From 509933800e447a5d8f89a0c2f564c4834aa73525 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Thu, 18 Feb 2016 07:37:17 +0000 Subject: [PATCH] Make a stub version of MITests, instead of reverting. Lit tends to find out-of-date unittests in the build tree. FIXME: It may be reverted several days after. llvm-svn: 261194 --- unittests/CMakeLists.txt | 1 + unittests/MI/CMakeLists.txt | 7 +++++++ unittests/MI/LiveIntervalTest.cpp | 6 ++++++ 3 files changed, 14 insertions(+) create mode 100644 unittests/MI/CMakeLists.txt create mode 100644 unittests/MI/LiveIntervalTest.cpp diff --git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt index e5befcec6e0..48a573ac5bc 100644 --- a/unittests/CMakeLists.txt +++ b/unittests/CMakeLists.txt @@ -22,6 +22,7 @@ add_subdirectory(IR) add_subdirectory(LineEditor) add_subdirectory(Linker) add_subdirectory(MC) +add_subdirectory(MI) add_subdirectory(Option) add_subdirectory(ProfileData) add_subdirectory(Support) diff --git a/unittests/MI/CMakeLists.txt b/unittests/MI/CMakeLists.txt new file mode 100644 index 00000000000..e8a794515d8 --- /dev/null +++ b/unittests/MI/CMakeLists.txt @@ -0,0 +1,7 @@ +set(LLVM_LINK_COMPONENTS + Support + ) + +add_llvm_unittest(MITests + LiveIntervalTest.cpp + ) diff --git a/unittests/MI/LiveIntervalTest.cpp b/unittests/MI/LiveIntervalTest.cpp new file mode 100644 index 00000000000..534bd0d686a --- /dev/null +++ b/unittests/MI/LiveIntervalTest.cpp @@ -0,0 +1,6 @@ +#include "gtest/gtest.h" + +// FIXME: It may be removed when practical tests came. +TEST(LiveIntervalTest, DummyStub) { + EXPECT_TRUE(true); +}