tests: Reformat loopback tests
[openafs.git] / tests / fuse / dynroot-t
1 #!/bin/sh
2 #
3 # This software has been released under the terms of the IBM Public
4 # License.  For details, see the LICENSE file in the top-level source
5 # directory or online at http://www.openafs.org/dl/license10.html
6 #
7 # This file (software) may also be used separately from OpenAFS
8 # under other licenses, contact the author(s) listed below for details.
9 #
10 # copyright 2011, 2012 Troy Benjegerdes <hozer@hozed.org>
11
12 . tap/libtap.sh
13
14
15 plan 1
16
17
18 grep -e "^>" fuse/conf/CellServDB  | cut -d " " -f 1 | cut -b2- | sort > fuse/cells.tmp
19
20 (cd fuse; ./try-fuse.sh > ./fuse-log 2>&1 ) &
21
22 fusepid=$!
23
24 sleep 1
25 ls fuse/mntdir | sort > fuse/ls.tmp
26 ok "ls dynroot" diff fuse/cells.tmp fuse/ls.tmp
27
28 rm fuse/cells.tmp fuse/ls.tmp
29
30 #not the best way to handle this
31 killall afsd.fuse
32
33 wait