Whamcloud - gitweb
22434b7d2d03c7ce8d82b78f1432ce6be88085e8
[fs/lustre-release.git] / lustre / tests / run-llog.sh
1 #!/bin/bash
2 PATH=`dirname $0`:`dirname $0`/../utils:$PATH
3 insmod ../obdclass/llog_test.o || exit 1
4 lctl modules > /r/tmp/ogdb-`hostname`
5 echo "NOW reload debugging syms.."
6
7 RC=0
8 lctl <<EOT || RC=2
9 newdev
10 attach llog_test llt_name llt_uuid
11 setup mds1
12 EOT
13
14 # Using ignore_errors will allow lctl to cleanup even if the test fails.
15 lctl <<EOC
16 cfg_device llt_name
17 ignore_errors
18 cleanup
19 detach
20 EOC
21 rmmod llog_test || RC2=3
22 [ $RC -eq 0 -a "$RC2" ] && RC=$RC2
23
24 exit $RC