CE-cms-squid 742 Bytes
Newer Older
Andrea Sciaba's avatar
Andrea Sciaba committed
1
2
3
4
5
6
#!/bin/bash

echo "<h2>Test of the local FroNtier squid</h2>"

# Source the CMS environment
echo "<h3>Sourcing the CMS environment</h3>"
Andrea Sciaba's avatar
Andrea Sciaba committed
7
export SCRAM_ARCH=slc3_ia32_gcc323
Andrea Sciaba's avatar
Andrea Sciaba committed
8
9
10
11
12
13
14
15
16
17
if [ -n "$VO_CMS_SW_DIR" ] ; then
    SW_DIR=$VO_CMS_SW_DIR
elif [ -n "$OSG_APP" ] ; then
    SW_DIR=$OSG_APP/cmssoft/cms
else
    echo "ERROR: Neither VO_CMS_SW_DIR nor OSG_APP defined"
    exit $SAME_ERROR
fi
echo "<pre>"
source $SW_DIR/cmsset_default.sh
Andrea Sciaba's avatar
Andrea Sciaba committed
18
19
20
21
result=$?
echo "</pre>"
if [ $result != 0 ]
    then
Andrea Sciaba's avatar
Andrea Sciaba committed
22
    echo "ERROR: $SW_DIR/cmsset_default.sh non existent or non readable"
Andrea Sciaba's avatar
Andrea Sciaba committed
23
24
25
26
27
    exit $SAME_ERROR
fi


# Execute main test script
Andrea Sciaba's avatar
Andrea Sciaba committed
28
29
echo "<h3>Executing the squid test</h3>"
echo "<pre>"
Andrea Sciaba's avatar
Andrea Sciaba committed
30
31
32
33
$SAME_SENSOR_HOME/tests/test_squid.py 2>&1
result=$?
echo "</pre>"
exit $result