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