3 # Script which does some basic tests to ensure we haven't regressed.
4 # Probably a good idea to run this before doing any checkins.
5 # In the future this can become more fancy, but it's OK for now.
13 [ "`mount | grep /mnt/lustre`" ] || echo | sh llmount.sh || exit 1
15 # let's start slowly here...
16 touch /mnt/lustre || exit 2
17 cp /etc/hosts /mnt/lustre || exit 3
18 diff -u /etc/hosts /mnt/lustre/hosts || exit 4
20 # ok, that hopefully worked, so let's do a little more
21 FILES=`find /etc -type f`
22 echo "copying files from /etc to /mnt/lustre"
23 tar cf - $FILES | tar xf - -C /mnt/lustre || exit 10
25 echo "comparing newly copied files"
27 diff -q $f /mnt/lustre/$f || ERROR=11
30 [ "$ERROR" ] && exit $ERROR
34 echo | sh llrmount.sh || exit 20
35 echo "comparing previously copied files"
36 diff -u /etc/hosts /mnt/lustre/hosts || exit 21
39 diff -q $f /mnt/lustre/$f || ERROR=22
42 [ "$ERROR" ] && exit $ERROR
45 echo | sh llrmount.sh || exit 24
47 echo "removing files from /mnt/lustre/etc"
48 rm /mnt/lustre/hosts || exit 25
50 rm -r /mnt/lustre/etc || exit 26