From 1cda2a82df3c9a0ddc1f09f4e897fe5a0b7692aa Mon Sep 17 00:00:00 2001 From: ferdymercury Date: Fri, 16 Feb 2024 13:10:16 +0100 Subject: [PATCH] [core] add more detailed tests for GetClassSharedLibs [core] test also for TFile RIO --- core/metacling/test/TClingTests.cxx | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/core/metacling/test/TClingTests.cxx b/core/metacling/test/TClingTests.cxx index b94656864f66c..50f6ea8426f96 100644 --- a/core/metacling/test/TClingTests.cxx +++ b/core/metacling/test/TClingTests.cxx @@ -169,6 +169,45 @@ TEST_F(TClingTests, GetClassSharedLibs) // GetLibs("ROOT::Math::LorentzVector >") // != GetLibs("ROOT::Math::LorentzVector>") // note the missing space. + + lib = GetLibs("TArray"); + EXPECT_EQ("Core", MakeLibNamePlatformIndependent(lib)); + + lib = GetLibs("TInterpreter"); + EXPECT_EQ("Core", MakeLibNamePlatformIndependent(lib)); + + lib = GetLibs("TRandom"); + EXPECT_EQ("MathCore", MakeLibNamePlatformIndependent(lib)); + + lib = GetLibs("TTree"); + EXPECT_EQ("Tree", MakeLibNamePlatformIndependent(lib)); + + lib = GetLibs("TTreeViewer"); + EXPECT_EQ("TreeViewer", MakeLibNamePlatformIndependent(lib)); + + lib = GetLibs("TGraph"); + EXPECT_EQ("Hist", MakeLibNamePlatformIndependent(lib)); + + lib = GetLibs("TGWindow"); + EXPECT_EQ("Gui", MakeLibNamePlatformIndependent(lib)); + + lib = GetLibs("TPad"); + EXPECT_EQ("Gpad", MakeLibNamePlatformIndependent(lib)); + + lib = GetLibs("TArrow"); + EXPECT_EQ("Graf", MakeLibNamePlatformIndependent(lib)); + + lib = GetLibs("TImage"); + EXPECT_EQ("Graf", MakeLibNamePlatformIndependent(lib)); + + lib = GetLibs("TASImage"); + EXPECT_EQ("ASImage", MakeLibNamePlatformIndependent(lib)); + + lib = GetLibs("TSpectrum"); + EXPECT_EQ("Spectrum", MakeLibNamePlatformIndependent(lib)); + + lib = GetLibs("TFile"); + EXPECT_EQ("RIO", MakeLibNamePlatformIndependent(lib)); } static std::string MakeDepLibsPlatformIndependent(const std::string &libs) {