Changeset 8438

Show
Ignore:
Timestamp:
07/14/10 18:32:21 (3 years ago)
Author:
bligon
Message:

Modified to work with the new testscrpt.sh

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/Orange-Branch/test/automated/vfs-tests.d/ltp

    r8419 r8438  
    11#!/bin/bash 
     2 
     3#default URL, in case this script is run separately 
     4if [ ! $URL ] 
     5then 
     6  URL=http://devorange.clemson.edu/pvfs 
     7fi 
    28 
    39LTPVER="20081130" 
    410THISDATE=`date +%F-%R` 
    5 #DOWNLOAD="http://www-unix.mcs.anl.gov/~carns/nightly-download/ltp-full-${LTPVER}.tgz" 
     11BENCHMARK=ltp-full-${LTPVER}.tgz 
     12DOWNLOAD=${URL}/${BENCHMARK} 
    613 
    714cd ${EXTRA_TESTS} 
    815 
    916# get rid of any old copies 
    10 sudo rm -rf ltp-full-${LTPVER}   
     17sudo rm -rf ltp-full-${LTPVER} 
     18sudo rm -f ltp-full-${LTPVER}.tgz   
    1119 
    1220# download 
    13 #echo Downloading LTP... 
    14 #wget -q ${DOWNLOAD} > /dev/null 
    15 #if [ "${?}" != 0 ] 
    16 #then 
    17 #    echo "Error: failed to download ${DOWNLOAD}." 
    18 #    exit 1; 
    19 #fi 
     21echo Downloading LTP... 
     22wget -q ${DOWNLOAD} > /dev/null 
     23if [ "${?}" != 0 ] 
     24then 
     25    echo "Error: failed to download ${DOWNLOAD}." 
     26    exit 1; 
     27fi 
    2028 
    21 tar -xvzf ltp-full-${LTPVER}.tgz > /dev/null 
     29tar -xvzf ${BENCHMARK} > /dev/null 
    2230if [ "${?}" != 0 ] 
    2331then