source: branches/samba-3.3.x/source/script/tests/test_net_misc.sh@ 482

Last change on this file since 482 was 206, checked in by Herwig Bauernfeind, 17 years ago

Import Samba 3.3 branch at 3.0.0 level (psmedley's port)

File size: 743 bytes
Line 
1#!/bin/sh
2
3# various tests for the "net" command
4
5NET="$VALGRIND ${NET:-$BINDIR/net} $CONFIGURATION"
6
7NETTIME="${NET} time"
8NETLOOKUP="${NET} lookup"
9
10incdir=`dirname $0`
11. $incdir/test_functions.sh
12
13failed=0
14
15test_time()
16{
17 PARAM="$1"
18
19 ${NETTIME} ${PARAM} -S localhost2
20}
21
22test_lookup()
23{
24 PARAM="$1"
25
26 ${NETLOOKUP} ${PARAM}
27}
28
29testit "get the time" \
30 test_time || \
31 failed=`expr $failed + 1`
32
33testit "get the system time" \
34 test_time system || \
35 failed=`expr $failed + 1`
36
37testit "get the time zone" \
38 test_time zone || \
39 failed=`expr $failed + 1`
40
41testit "lookup the PDC" \
42 test_lookup pdc || \
43 failed=`expr $failed + 1`
44
45testit "lookup the master browser" \
46 test_lookup master || \
47 failed=`expr $failed + 1`
48
49testok $0 $failed
50
Note: See TracBrowser for help on using the repository browser.