xref: /freebsd/tests/sys/geom/class/uzip/conf.sh (revision 1719886f6d08408b834d270c59ffcfd821c8f63a)
1#!/bin/sh
2
3class="uzip"
4base=`basename $0`
5
6uzip_test_cleanup()
7{
8	if [ -n "$mntpoint" ]; then
9		umount $mntpoint
10		rmdir $mntpoint
11	fi
12	geom_test_cleanup
13}
14trap uzip_test_cleanup ABRT EXIT INT TERM
15
16. `dirname $0`/../geom_subr.sh
17
18# NOTE: make sure $TMPDIR has been set by geom_subr.sh if unset [by kyua, etc]
19mntpoint=$(mktemp -d tmp.XXXXXX) || exit
20