1 # $NetBSD: quotas_common.sh,v 1.2 2011/03/06 17:08:41 bouyer Exp $
10 atf_check
-o ignore
-e ignore newfs
-B ${endian} -O ${vers} \
12 atf_check
-o ignore
-e ignore tunefs
-q user
-q group
-F ${IMG}
13 atf_check
-s exit:0 -o 'match:NO USER QUOTA INODE \(CREATED\)' \
14 -o 'match:USER QUOTA MISMATCH FOR ID '${uid}': 0/0 SHOULD BE 1/1' \
15 -o 'match:GROUP QUOTA MISMATCH FOR ID '${gid}': 0/0 SHOULD BE 1/1' \
19 # from tests/ipf/h_common.sh via tests/sbin/resize_ffs
22 local name
="${1}"; shift
23 local check_function
="${1}"; shift
24 local descr
="${1}"; shift
26 atf_test_case
"${name}"
28 eval "${name}_head() { \
29 atf_set "descr
" "Checks
${descr} quotas inodes
"
31 eval "${name}_body() { \
32 ${check_function} " "${@}" "; \
34 tests
="${tests} ${name}"