Skip to content

Commit

Permalink
【paddle_test No.4】replace cc_test with paddle_test (#60833)
Browse files Browse the repository at this point in the history
* Update CMakeLists.txt

* Update CMakeLists.txt

* try to delete DEPS pir

* Update CMakeLists.txt

* Update ir_parser_test.cc
  • Loading branch information
Liyulingyue authored Jan 31, 2024
1 parent 2c318bc commit 2ae3021
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions test/cpp/pir/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ paddle_test(program_translator_test SRCS program_translator_test.cc)

paddle_test(add_dialect_parser_test SRCS add_dialect_parser_test.cc DEPS gtest)

cc_test(
ir_parser_test
SRCS ir_parser_test.cc
DEPS gtest op_dialect_vjp pir)
paddle_test(ir_parser_test SRCS ir_parser_test.cc DEPS gtest)

paddle_test(ir_op_info_test SRCS op_info_test.cc)
paddle_test(ir_op_yaml_info_parser_test SRCS op_yaml_info_parser_test.cc)
Expand Down
4 changes: 0 additions & 4 deletions test/cpp/pir/core/ir_parser_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,7 @@ TEST(IrParserTest, TestParserByFile) {
pir::IrContext* ctx = pir::IrContext::Instance();
ctx->GetOrRegisterDialect<OperatorDialect>();
ctx->GetOrRegisterDialect<pir::BuiltinDialect>();
#ifdef _WIN32
const std::string file_path = "TestParserText.txt";
#else
const std::string file_path = "./pir/core/TestParserText.txt";
#endif
std::ifstream is(file_path);
EXPECT_TRUE(is.is_open());
ParserTest parser_test(is);
Expand Down

0 comments on commit 2ae3021

Please sign in to comment.