project: cmd comerr
-tests: all
+tests: all_nolibafs
+ +${COMPILE_PART1} tests ${COMPILE_PART2}
+
+tests_libafs: all
+${COMPILE_PART1} tests ${COMPILE_PART2}
config: prelude
rpctestlib: util fsint rx opr libafsrpc libafsauthent
+${TEST_PART1} rpctestlib ${COMPILE_PART2}
-check test: finale
+check test: finale_nolibafs
cd tests && $(MAKE) check
# Use washtool to ensure MakefileProto is current and obj/libafs exists.
tests/auth/Makefile \
tests/cmd/Makefile \
tests/common/Makefile \
+tests/fuse/Makefile \
tests/opr/Makefile \
tests/rpctestlib/Makefile \
tests/rx/Makefile \
volser/vos
bucoord/backup-man
kauth/kas-man
+fuse/dynroot
--- /dev/null
+# This software has been released under the terms of the IBM Public
+# License. For details, see the LICENSE file in the top-level source
+# directory or online at http://www.openafs.org/dl/license10.html
+#
+# This file (software) make also be used separately from OpenAFS
+# under other licenses, contact the author(s) listed below for details.
+#
+# copyright 2011, 2012 Troy Benjegerdes <hozer@hozed.org>
+
+CELLSRV=@TOP_OBJDIR@/src/afsd/CellServDB
+
+conf/CellServDB: $(CELLSRV)
+ cp $(CELLSRV) conf/
--- /dev/null
+mntdir:vcache:100000
--- /dev/null
+#!/bin/sh
+#
+# This software has been released under the terms of the IBM Public
+# License. For details, see the LICENSE file in the top-level source
+# directory or online at http://www.openafs.org/dl/license10.html
+#
+# This file (software) may also be used separately from OpenAFS
+# under other licenses, contact the author(s) listed below for details.
+#
+# copyright 2011, 2012 Troy Benjegerdes <hozer@hozed.org>
+
+. tap/libtap.sh
+
+
+plan 1
+
+
+grep -e "^>" fuse/conf/CellServDB | cut -d " " -f 1 | cut -b2- | sort > fuse/cells.tmp
+
+(cd fuse; ./try-fuse.sh > ./fuse-log 2>&1 ) &
+
+fusepid=$!
+
+sleep 1
+ls fuse/mntdir | sort > fuse/ls.tmp
+ok "ls dynroot" diff fuse/cells.tmp fuse/ls.tmp
+
+rm fuse/cells.tmp fuse/ls.tmp
+
+#not the best way to handle this
+killall afsd.fuse
+
+wait
--- /dev/null
+#!/bin/sh
+#
+# This software has been released under the terms of the IBM Public
+# License. For details, see the LICENSE file in the top-level source
+# directory or online at http://www.openafs.org/dl/license10.html
+#
+# This file (software) may also be used separately from OpenAFS
+# under other licenses, contact the author(s) listed below for details.
+#
+# This software copyright 2011, 2012 Troy Benjegerdes <hozer@hozed.org>
+
+. ../tap/libtap.sh
+
+
+plan 1
+
+if [ ! -f "$TOPDIR/src/afsd/afsd.fuse" ] ; then
+ skip_all
+fi
+
+grep -e "^>" conf/CellServDB | cut -d " " -f 1 | cut -b2- | sort > cells.tmp
+
+(./try-fuse.sh > fuse-log 2>&1 ) &
+
+fusepid=$!
+
+sleep 1
+ls mntdir | sort > ls.tmp
+ok "ls dynroot" diff cells.tmp ls.tmp
+
+rm cells.tmp ls.tmp
+
+kill $fusepid
+
+wait $fusepid
--- /dev/null
+#!/bin/sh -x
+#
+# This software has been released under the terms of the IBM Public
+# License. For details, see the LICENSE file in the top-level source
+# directory or online at http://www.openafs.org/dl/license10.html
+#
+# This file (software) may also be used separately from OpenAFS
+# under other licenses, contact the author(s) listed below for details.
+#
+# copyright 2011, 2012 Troy Benjegerdes <hozer@hozed.org>
+
+TESTDIR=$PWD
+TOPDIR=$PWD/../..
+
+export LD_LIBRARY_PATH=$TOPDIR/lib
+
+#in case there's a stale mount here
+fusermount -u $TESTDIR/mntdir
+
+$TOPDIR/src/afsd/afsd.fuse -dynroot -fakestat -d -confdir $TESTDIR/conf -cachedir $TESTDIR/vcache -mountdir $TESTDIR/mntdir
+
+
+fusermount -u $TESTDIR/mntdir