xref: /freebsd/tests/sys/geom/class/uzip/conf.sh (revision a4128aad8503277614f2d214011ef60a19447b83)
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