source: trunk/server/source3/script/tests/test_net_misc.sh@ 480

Last change on this file since 480 was 414, checked in by Herwig Bauernfeind, 16 years ago

Samba 3.5.0: Initial import

File size: 791 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
10test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
11incdir=`dirname $0`
12. $incdir/test_functions.sh
13}
14
15failed=0
16
17test_time()
18{
19 PARAM="$1"
20
21 ${NETTIME} -S ${SERVER} ${PARAM}
22}
23
24test_lookup()
25{
26 PARAM="$1"
27
28 ${NETLOOKUP} ${PARAM}
29}
30
31testit "get the time" \
32 test_time || \
33 failed=`expr $failed + 1`
34
35testit "get the system time" \
36 test_time system || \
37 failed=`expr $failed + 1`
38
39testit "get the time zone" \
40 test_time zone || \
41 failed=`expr $failed + 1`
42
43testit "lookup the PDC" \
44 test_lookup pdc || \
45 failed=`expr $failed + 1`
46
47testit "lookup the master browser" \
48 test_lookup master || \
49 failed=`expr $failed + 1`
50
51testok $0 $failed
52
Note: See TracBrowser for help on using the repository browser.