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}
13 if [ ! -e $LTREE_KERNEL ]; then
14 echo "$LTREE_KERNEL dosen't exits"
18 if [ ! -e $LTREE_USER ]; then
19 echo "$LTREE_USER dosen't exits"
23 if [ ! -e $LTREE_USER/liblustre/lltest ]; then
24 echo "$LTREE_USER/liblustre/lltest dosen't exits"
33 cd $LTREE_KERNEL/tests
34 $LCONF --node localhost --cleanup --force $LTREE_USER/tests/$configfile 2>&1 > /dev/null
38 configfile=liblustre_sanity_uml.xml
40 # generate config file
42 MDSNODE=localhost OSTNODES=localhost CLIENTS=$LLIP sh uml.sh $configfile
43 if [ ! -e $configfile ]; then
44 echo "fail to generate config file $configfile"
50 $LCONF --lctl_dump /tmp/DUMP_FILE --node $LLIP $configfile
51 if [ ! -e /tmp/DUMP_FILE ]; then
52 echo "error creating dumpfile"
57 cd $LTREE_KERNEL/tests
58 $LCONF --node localhost --reformat $LTREE_USER/tests/$configfile
60 if [ $rc -ne 0 ]; then
61 echo "setup lustre server: error $rc"
68 $LTREE_USER/liblustre/lltest
70 if [ $rc -ne 0 ]; then
71 echo "liblustre test error $rc"
76 echo "===== liblustre sanity test complete sucessfully ====="
78 echo -n "===== cleanup... "; cleanup; echo "done ====="