lib/util/wscript: update to handle waf 2.0.4
[Samba.git] / testprogs / blackbox / dom_parse.sh
blobdd14f0d7ca9c8222438463f0345d08438d5e07fa
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