re-run make idl.
[Samba.git] / source / script / tests / test_net_misc.sh
blob0a0636ac8a9b406ae4d5cd951edd4c7a809277be
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 incdir=`dirname $0`
11 . $incdir/test_functions.sh
13 failed=0
15 test_time()
17 PARAM="$1"
19 ${NETTIME} ${PARAM} -S localhost2
22 test_lookup()
24 PARAM="$1"
26 ${NETLOOKUP} ${PARAM}
29 testit "get the time" \
30 test_time || \
31 failed=`expr $failed + 1`
33 testit "get the system time" \
34 test_time system || \
35 failed=`expr $failed + 1`
37 testit "get the time zone" \
38 test_time zone || \
39 failed=`expr $failed + 1`
41 testit "lookup the PDC" \
42 test_lookup pdc || \
43 failed=`expr $failed + 1`
45 testit "lookup the master browser" \
46 test_lookup master || \
47 failed=`expr $failed + 1`
49 testok $0 $failed