CE-cms-squid 708 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
22
23
24
25
26
27
28
29
30
31
32
result=$?
echo "</pre>"
if [ $result != 0 ]
    then
    echo "ERROR: $VO_CMS_SW_DIR/cmsset_default.sh non existent or non readable"
    exit $SAME_ERROR
fi

echo "<pre>"

# Execute main test script
$SAME_SENSOR_HOME/tests/test_squid.py 2>&1
result=$?
echo "</pre>"
exit $result