File indexing completed on 2024-04-06 12:31:53
0001
0002
0003 function die { echo Failure $1: status $2 ; exit $2 ; }
0004
0005 pushd ${LOCAL_TMP_DIR}
0006
0007 domain=`hostname -d`
0008 echo domain is $domain
0009
0010 echo $domain | grep cern
0011
0012 if [ $? = "1" ]
0013 then
0014 echo This test only works at cern. This machine is not at cern.
0015 echo Skipping test.
0016 exit 0
0017 fi
0018
0019 echo " "
0020 echo Running test_StorageFactory_Rfio -----------------------------------------------------------
0021 ${LOCAL_TOP_DIR}/test/${SCRAM_ARCH}/test_StorageFactory_Rfio || die "test_StorageFactory_Rfio" $?
0022
0023 echo " "
0024 echo Running test_StorageFactory_Write ----------------------------------------------------------
0025
0026 castorfile=/castor/cern.ch/cms/test/IBTestFiles/test_StorageFactory_Write.`date +%Y%M%d%H%m-${SCRAM_ARCH}-$$`
0027 ${LOCAL_TOP_DIR}/test/${SCRAM_ARCH}/test_StorageFactory_Write ${castorfile} || die "test_StorageFactory_Write" $?
0028 stager_rm -M ${castorfile}
0029 rfrm ${castorfile}
0030
0031 popd
0032 exit 0