Try and fix bug #7233 - print fails with jobs >4GB from Win7 clients.
[Samba/kamenim.git] / source4 / librpc / tests / test_ndrdump.sh
blobdccf86df8857e557a391b1c8110190171e444fb4
1 #!/bin/sh
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`/../../../testprogs/blackbox/subunit.sh
9 failed=0
11 samba4bindir="$BUILDDIR/bin"
12 ndrdump="$samba4bindir/ndrdump$EXEEXT"
13 files=`dirname $0`/
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`
20 exit $failed