Whamcloud - gitweb
Invoke shell scripts via "sh" because CVS doesn't keep file perms well.
[fs/lustre-release.git] / lustre / tests / trivial.sh
1 #!/bin/sh
2 # Simple test of mount and unmount
3 sh llsetup.sh obdecho.cfg net-local.cfg client-echo.cfg || exit 1
4 # FIXME: Scan logs for any unusual things (unbalanced allocations, errors)
5 sh llcleanup.sh obdecho.cfg net-local.cfg client-echo.cfg
6 OBD_LEAK=`dmesg | awk '/obd memory leaked/ { print $7 }'`
7 [ "$OBD_LEAK" != "0" ] && echo "OBD memory leak: $OBD_LEAK bytes" && ERR=1
8 NAL_LEAK=`dmesg | awk '/NAL unloaded/ { print $7 }'
9 [ "$NAL_LEAK" != "0)" ] && echo "Portals memory leak: $NAL_LEAK" && ERR=1
10 /sbin/lsmod | grep -q portals && "Portals module still loaded" && ERR=1
11 exit $ERR