3 # liblustre sanity test. specially written for UML for now
5 LCONF=${LCONF:-../utils/lconf}
9 LTREE_KERNEL=${LTREE_KERNEL:-../../lustre}
10 LTREE_USER=${LTREE_USER:-../../lustre-lib}
14 if [ ! -e $LTREE_KERNEL ]; then
15 echo "$LTREE_KERNEL dosen't exits"
19 if [ ! -e $LTREE_USER ]; then
20 echo "$LTREE_USER dosen't exits"
24 if [ ! -e $LTREE_USER/liblustre/lltest ]; then
25 echo "$LTREE_USER/liblustre/lltest dosen't exits"
34 cd $LTREE_KERNEL/tests
35 $LCONF --node $HOSTNAME --cleanup --force $LTREE_USER/tests/$configfile 2>&1 > /dev/null
39 configfile=liblustre_sanity_uml.xml
41 # generate config file
43 MDSNODE=$HOSTNAME OSTNODES=$HOSTNAME CLIENTS=$LLIP sh uml.sh $configfile
44 if [ ! -e $configfile ]; then
45 echo "fail to generate config file $configfile"
51 $LCONF --lctl_dump /tmp/DUMP_FILE --node $LLIP $configfile
52 if [ ! -e /tmp/DUMP_FILE ]; then
53 echo "error creating dumpfile"
58 cd $LTREE_KERNEL/tests
59 $LCONF --node $HOSTNAME --reformat $LTREE_USER/tests/$configfile
61 if [ $rc -ne 0 ]; then
62 echo "setup lustre server: error $rc"
69 $LTREE_USER/liblustre/lltest
71 if [ $rc -ne 0 ]; then
72 echo "liblustre test error $rc"
77 echo "===== liblustre sanity test complete sucessfully ====="
79 echo -n "===== cleanup... "; cleanup; echo "done ====="