7 LUSTRE=${LUSTRE:-$(cd $(dirname $0)/..; echo $PWD)}
8 . $LUSTRE/tests/test-framework.sh
10 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
12 LIBLUSTRETESTS=${LIBLUSTRETESTS:-$LUSTRE/liblustre/tests}
14 assert_env MGSNID MOUNT2
15 export LIBLUSTRE_MOUNT_POINT=$MOUNT2
16 export LIBLUSTRE_MOUNT_RETRY=5
17 export LIBLUSTRE_MOUNT_TARGET=$MGSNID:/$FSNAME
18 export LIBLUSTRE_TIMEOUT=`lctl get_param -n timeout`
19 #export LIBLUSTRE_DEBUG_MASK=`lctl get_param -n debug`
22 if ! check_versions; then
23 skip "liblustre version mismatch: cli $CLIVER, mds $MDSVER, ost $OSTVER"
24 elif ! [ "$NETTYPE" = "tcp" -o "$NETTYPE" = "ptl" ]; then
25 skip "NETTYPE=$NETTYPE unsupported for liblustre"
26 elif [ ! -x $LIBLUSTRETESTS/sanity ]; then
27 skip "$LIBLUSTRETESTS/sanity: not found"
30 echo $LIBLUSTRETESTS/sanity --target=$LIBLUSTRE_MOUNT_TARGET
31 $LIBLUSTRETESTS/sanity --target=$LIBLUSTRE_MOUNT_TARGET
32 if [ "$LIBLUSTRE_EXCEPT" ]; then
33 LIBLUSTRE_OPT="$LIBLUSTRE_OPT \
34 $(echo ' '$LIBLUSTRE_EXCEPT | sed -re 's/\s+/ -e /g')"
36 echo $LIBLUSTRETESTS/sanity --target=$LIBLUSTRE_MOUNT_TARGET $LIBLUSTRE_OPT
37 $LIBLUSTRETESTS/sanity --target=$LIBLUSTRE_MOUNT_TARGET $LIBLUSTRE_OPT
40 run_test 1 "liblustre sanity"
42 complete $(basename $0) $SECONDS
43 check_and_cleanup_lustre