From 651a403fbeb62788ae517470c7404e77f25c2e06 Mon Sep 17 00:00:00 2001 From: Jonas Rembser <jonas.rembser@cern.ch> Date: Sun, 16 Oct 2022 14:31:48 +0200 Subject: [PATCH] [RF] Use relative reference file paths in `stressRooStats/HistFactory` This is already done in `stressRooFit`, and it's useful because it gives more flexibility in executing the test. The problem was that the previous `$ROOTSYS/test/*_ref.root` path required ROOT to be installed, which is not always wanted for developers that just like to run the tests. --- test/stressHistFactory.cxx | 4 ++-- test/stressRooStats.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/stressHistFactory.cxx b/test/stressHistFactory.cxx index bb4e68d2334..626bc37b7be 100644 --- a/test/stressHistFactory.cxx +++ b/test/stressHistFactory.cxx @@ -187,7 +187,7 @@ int main(int argc, const char *argv[]) Int_t testNumber = 0; bool dryRun = false; - string refFileName = "$ROOTSYS/test/stressHistFactory_ref.root" ; + string refFileName = "stressHistFactory_ref.root" ; // Parse command line arguments @@ -251,7 +251,7 @@ Int_t stressHistFactory() Int_t testNumber = 0; bool dryRun = false; - string refFileName = "$ROOTSYS/test/stressHistFactory_ref.root" ; + string refFileName = "stressHistFactory_ref.root" ; return stressHistFactory(refFileName.c_str(), doWrite, verbose, allTests, oneTest, testNumber, dryRun); } diff --git a/test/stressRooStats.cxx b/test/stressRooStats.cxx index ab731eabf40..5ec7af7db73 100644 --- a/test/stressRooStats.cxx +++ b/test/stressRooStats.cxx @@ -297,7 +297,7 @@ int main(int argc, const char *argv[]) bool doTreeStore = false; //string refFileName = "http://root.cern.ch/files/stressRooStats_v534_ref.root" ; - string refFileName = "$ROOTSYS/test/stressRooStats_ref.root" ; + string refFileName = "stressRooStats_ref.root" ; string minimizerName = "Minuit"; // Parse command line arguments @@ -403,7 +403,7 @@ Int_t stressRooStats() bool dryRun = false; bool doDump = false; bool doTreeStore = false; - string refFileName = "$ROOTSYS/test/stressRooStats_ref.root"; + string refFileName = "stressRooStats_ref.root"; return stressRooStats(refFileName.c_str(), doWrite, verbose, allTests, oneTest, testNumber, dryRun, doDump, doTreeStore); } -- GitLab