s4:torture/rpc/samba3rpc.c: make use of dcerpc_binding_handle stubs
[Samba/nascimento.git] / source3 / script / tests / test_net_misc.sh
blob8d092f4fe1ac76b57c803244331679952f689932
1 #!/bin/sh
3 # various tests for the "net" command
5 NET="$VALGRIND ${NET:-$BINDIR/net} $CONFIGURATION"
7 NETTIME="${NET} time"
8 NETLOOKUP="${NET} lookup"
10 test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
11 incdir=`dirname $0`
12 . $incdir/test_functions.sh
15 failed=0
17 test_time()
19 PARAM="$1"
21 ${NETTIME} -S ${SERVER} ${PARAM}
24 test_lookup()
26 PARAM="$1"
28 ${NETLOOKUP} ${PARAM}
31 testit "get the time" \
32 test_time || \
33 failed=`expr $failed + 1`
35 testit "get the system time" \
36 test_time system || \
37 failed=`expr $failed + 1`
39 testit "get the time zone" \
40 test_time zone || \
41 failed=`expr $failed + 1`
43 testit "lookup the PDC" \
44 test_lookup pdc || \
45 failed=`expr $failed + 1`
47 testit "lookup the master browser" \
48 test_lookup master || \
49 failed=`expr $failed + 1`
51 testok $0 $failed