[CI]Added initial framework of CXX unittest (#98)
Based on the discussion in #53 , I just added the initial flow of CXX unittests for this repo, with providing two dummy UTs as placeholder to show the usage, feel free to add your own CXX unittests. @Superjomn @ptillet @ptillet , in this PR, I also configure the integration-tests.yml to add the unittest into github CI check. Thanks
This commit is contained in:
5
unittest/Analysis/CMakeLists.txt
Normal file
5
unittest/Analysis/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
add_triton_ut(
|
||||
NAME TritonAnalysisTests
|
||||
SRCS UtilityTest.cpp
|
||||
LIBS TritonAnalysis
|
||||
)
|
14
unittest/Analysis/UtilityTest.cpp
Normal file
14
unittest/Analysis/UtilityTest.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
//===- UtilityTest.cpp - Tests for
|
||||
// Utility----------------------------------===//
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "triton/Analysis/Utility.h"
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
namespace mlir {
|
||||
|
||||
TEST(UtilityTest, DummyTest) { EXPECT_EQ(true, true); }
|
||||
|
||||
} // namespace mlir
|
Reference in New Issue
Block a user