Whamcloud - gitweb
Invoke shell scripts via "sh" because CVS doesn't keep file perms well.
authoradilger <adilger>
Sat, 7 Sep 2002 06:47:07 +0000 (06:47 +0000)
committeradilger <adilger>
Sat, 7 Sep 2002 06:47:07 +0000 (06:47 +0000)
Add some extra basic checks after the cleanup.

lustre/tests/trivial.sh

index acc8a92..abfecf0 100755 (executable)
@@ -1,5 +1,11 @@
 #!/bin/sh
 # Simple test of mount and unmount
-llsetup.sh obdecho.cfg net-local.cfg client-echo.cfg || exit 1
+sh llsetup.sh obdecho.cfg net-local.cfg client-echo.cfg || exit 1
 # FIXME: Scan logs for any unusual things (unbalanced allocations, errors)
-llcleanup.sh obdecho.cfg net-local.cfg client-echo.cfg
+sh llcleanup.sh obdecho.cfg net-local.cfg client-echo.cfg
+OBD_LEAK=`dmesg | awk '/obd memory leaked/ { print $7 }'`
+[ "$OBD_LEAK" != "0" ] && echo "OBD memory leak: $OBD_LEAK bytes" && ERR=1
+NAL_LEAK=`dmesg | awk '/NAL unloaded/ { print $7 }'
+[ "$NAL_LEAK" != "0)" ] && echo "Portals memory leak: $NAL_LEAK" && ERR=1
+/sbin/lsmod | grep -q portals && "Portals module still loaded" && ERR=1
+exit $ERR