Download the code
# Create the installation directory
mkdir ~/myLCG
mkdir ~/myLCG/POOL_HEAD
# Download the HEAD of POOL
setenv CVSROOT :gserver:pf.cvs.cern.ch:/cvs/PF
cd ~/myLCG/POOL_HEAD
cvs co -d src pool.release
Set up CMT (for building and/or testing)
# Set up CMT
setenv CMTCONFIG x86_64-slc5-gcc43-dbg
cd ~/myLCG/POOL_HEAD/src/config/cmt
source CMT_env.csh
# Analyze POOL packages and their dependencies
# (cmt broadcast will build packages in the same order)
cd ~/myLCG/POOL_HEAD/src/config/cmt
cmt show uses
# Build all of POOL
cd ~/myLCG/POOL_HEAD/src/config/cmt
./cmtBroadcast.sh cmt make all_groups
# Look at the header file installed during the build
ls ~/myLCG/POOL_HEAD/include
# Look at the binaries, libraries and tests installed during the build
ls ~/myLCG/POOL_HEAD/${CMTCONFIG}/bin
ls ~/myLCG/POOL_HEAD/${CMTCONFIG}/lib
ls ~/myLCG/POOL_HEAD/${CMTCONFIG}/tests
# Simpler example: build only POOLCore
cd ~/myLCG/POOL_HEAD/src/POOLCore/cmt
cmt make all_groups
Set up the runtime environment and execute individual tests
# Create the CMT setup scripts (you only need to do it once to create the files)
cd ~/myLCG/POOL_HEAD/src/config/cmt
./cmtBroadcast.sh cmt config
# Simpler example: create the setup scripts only in POOLCore
cd ~/myLCG/POOL_HEAD/src/POOLCore/cmt
cmt config
# Set up the POOL runtime environment
cd ~/myLCG/POOL_HEAD/src/config/cmt
source setup.csh
# Execute one test standalone
test_unit_FileCatalog_FCEntry
Execute the full test suite (or individual tests) in QMtest
# Set up the QMtest and POOL runtime environment
cd ~/myLCG/POOL_HEAD/src/config/cmt
source setup.csh
# Execute the full test suite
cd ~/myLCG/POOL_HEAD/src/config/qmtest
qmtest run
--
AndreaValassi - 21-Jun-2010