vfs: Fix a typo
[Samba.git] / testprogs / blackbox / dom_parse.sh
blob8a22ce2973266c43e1311ac8dda09aa26e87001a
1 #!/bin/sh
2 # Blackbox wrapper for nsstest
3 # Copyright (C) 2006-2007 Jelmer Vernooij <jelmer@samba.org>
4 # Copyright (C) 2006-2008 Andrew Bartlett <abartlet@samba.org>
6 if [ $# -lt 2 ]; then
7 cat <<EOF
8 Usage: dom_parse.sh [id|getent] $USER
9 EOF
10 exit 1
13 USER=$2
14 CMD=$1
15 EXTRA=""
16 shift 2
17 failed=0
19 . $(dirname $0)/subunit.sh
21 if [ "$CMD" = "getent" ]; then
22 EXTRA="passwd"
25 testit "samba4.winbind.dom_name_parse.cmd.$CMD" $CMD $EXTRA $USER || failed=$(expr $failed + 1)
27 exit $failed