Skip to content

Commit

Permalink
[core] add more detailed tests for GetClassSharedLibs
Browse files Browse the repository at this point in the history
[core] test also for TFile RIO
  • Loading branch information
ferdymercury authored and pcanal committed Apr 4, 2024
1 parent 587ae6a commit 1cda2a8
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions core/metacling/test/TClingTests.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,45 @@ TEST_F(TClingTests, GetClassSharedLibs)
// GetLibs("ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<float> >")
// != GetLibs("ROOT::Math::LorentzVector<ROOT::Math::PxPyPzE4D<float>>")
// 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) {
Expand Down

0 comments on commit 1cda2a8

Please sign in to comment.