• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.5.8/source3/script/tests/
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
53