#!/bin/bash
##############################################################################
# Copyright (c) Members of the EGEE Collaboration. 2010.
# See http://www.eu-egee.org/partners/ for details on the copyright
# holders.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS
# OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##############################################################################
#
# Source DPM-config
cd ../..
source DPM-config
cd -
source ./Macros

# pynfs related locations
export PYNFS_HOME=$PWD/newpynfs
export PYNFS41_HOME=$PWD/newpynfs/nfs4.1
export PYTHONPATH=$PYTHONPATH:$PYNFS_HOME

# DPM NFS related locations and binaries
export NFS_HOST=${NFS_HOST:=$DPNS_HOST}
export NFS_HOME="/grid$DPNS_HOME"
export NFS41_EXEC="python26 $PYNFS41_HOME/testserver.py"

# do the common test initialization (dummy test + maketree)
PYNFS_EXEC "$NFS41_EXEC $NFS_HOST:$NFS_HOME EID1 --maketree"
