From 9e641ad15150b19eb8bbed819bf2eb6843c4d9be Mon Sep 17 00:00:00 2001 From: adilger Date: Sat, 7 Sep 2002 06:47:07 +0000 Subject: [PATCH 1/1] Invoke shell scripts via "sh" because CVS doesn't keep file perms well. Add some extra basic checks after the cleanup. --- lustre/tests/trivial.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lustre/tests/trivial.sh b/lustre/tests/trivial.sh index acc8a92..abfecf0 100755 --- a/lustre/tests/trivial.sh +++ b/lustre/tests/trivial.sh @@ -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 -- 1.8.3.1