Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2025-02-27 07:20:28

0001 #!/bin/bash -ex
0002 
0003 # PyROOT Test Script
0004 #
0005 # This script tests the following:
0006 # 1. The ability to import and access ROOT properties (e.g., kFALSE, kTRUE).
0007 # 2. Ensuring that PyROOT does not load any CMSSW shared libraries.
0008 #   (Refer to: https://github.com/cms-sw/cmssw/issues/43077)
0009 
0010 for sym in TTreeReader.fgEntryStatusText kFALSE kTRUE gStyle TTree.kMaxEntries TString.kNPOS gEnv gSystem kWarning gErrorIgnoreLevel kError ; do
0011   strace -z -f -o log1.txt -e trace=openat python3 -c "import ROOT;print(ROOT.${sym});"
0012   cmssw_lib=$(grep libFWCoreVersion.so log1.txt | wc -l)
0013   rm -f log1.txt
0014   if [ ${cmssw_lib} -gt 0 ] ; then
0015     echo "ERROR: CMSSW libraries loaded by import ROOT"
0016     exit 1
0017   fi
0018 done