2 # Blackbox tests for masktest
3 # Copyright (C) 2008 Andrew Tridgell
4 # Copyright (C) 2008 Andrew Bartlett
5 # based on test_smbclient.sh
7 .
`dirname $0`/subunit.sh
11 samba4bindir
=`dirname $0`/..
/..
/source4/bin
12 ndrdump
=$samba4bindir/ndrdump
13 files
=`dirname $0`/ndrdump
15 testit
"ndrdump with in" $VALGRIND $ndrdump samr samr_CreateUser
in $files/samr-CreateUser-in.dat $@ || failed
=`expr $failed + 1`
16 testit
"ndrdump with out" $VALGRIND $ndrdump samr samr_CreateUser out
$files/samr-CreateUser-out.dat $@ || failed
=`expr $failed + 1`
17 testit
"ndrdump with --context-file" $VALGRIND $ndrdump --context-file $files/samr-CreateUser-in.dat samr samr_CreateUser out
$files/samr-CreateUser-out.dat $@ || failed
=`expr $failed + 1`
18 testit
"ndrdump with validate" $VALGRIND $ndrdump --validate samr samr_CreateUser
in $files/samr-CreateUser-in.dat $@ || failed
=`expr $failed + 1`