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