~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to source4/selftest/tests_win.sh

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
 if [ `whoami` != "root" ]; then
 
4
       echo "Windows tests will not run without root privileges."
 
5
       exit 1
 
6
 fi
 
7
 
 
8
 if [ "$DO_SOCKET_WRAPPER" = SOCKET_WRAPPER ]; then
 
9
       echo "Windows tests will not run with socket wrapper enabled."
 
10
       exit 1
 
11
 fi
 
12
 
 
13
 if [ ! $WINTESTCONF ]; then
 
14
        echo "Environment variable WINTESTCONF has not been defined."
 
15
        echo "Windows tests will not run unconfigured."
 
16
        exit 1
 
17
 fi
 
18
 
 
19
 if [ ! -r $WINTESTCONF ]; then
 
20
       echo "$WINTESTCONF could not be read."
 
21
       exit 1
 
22
 fi
 
23
 
 
24
 export WINTEST_DIR=$SRCDIR/selftest/win
 
25
 export TMPDIR=$TMPDIR
 
26
 export NETBIOSNAME=$NETBIOSNAME
 
27
 
 
28
 . $WINTESTCONF
 
29
 
 
30
 $SRCDIR/selftest/test_win.sh