svn commit: samba r22575 - in branches/SAMBA_4_0/source: . script scripting/swig selftest selftest/win

metze at samba.org metze at samba.org
Sun Apr 29 20:38:00 GMT 2007


Author: metze
Date: 2007-04-29 20:37:59 +0000 (Sun, 29 Apr 2007)
New Revision: 22575

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=22575

Log:
move script/tests/ -> selftest/

as discussed with jelmer and abartlet

metze
Added:
   branches/SAMBA_4_0/source/selftest/
Removed:
   branches/SAMBA_4_0/source/script/tests/
Modified:
   branches/SAMBA_4_0/source/main.mk
   branches/SAMBA_4_0/source/scripting/swig/config.mk
   branches/SAMBA_4_0/source/selftest/Samba3.pm
   branches/SAMBA_4_0/source/selftest/Samba4.pm
   branches/SAMBA_4_0/source/selftest/Windows.pm
   branches/SAMBA_4_0/source/selftest/selftest.pl
   branches/SAMBA_4_0/source/selftest/test_blackbox.sh
   branches/SAMBA_4_0/source/selftest/test_s3upgrade.sh
   branches/SAMBA_4_0/source/selftest/test_samba4.pl
   branches/SAMBA_4_0/source/selftest/test_win.sh
   branches/SAMBA_4_0/source/selftest/tests_all.sh
   branches/SAMBA_4_0/source/selftest/tests_quick.sh
   branches/SAMBA_4_0/source/selftest/tests_win.sh
   branches/SAMBA_4_0/source/selftest/tests_win2k3_dc.sh
   branches/SAMBA_4_0/source/selftest/win/README
   branches/SAMBA_4_0/source/selftest/win/wintest_base.sh
   branches/SAMBA_4_0/source/selftest/win/wintest_client.sh
   branches/SAMBA_4_0/source/selftest/win/wintest_net.sh
   branches/SAMBA_4_0/source/selftest/win/wintest_raw.sh
   branches/SAMBA_4_0/source/selftest/win/wintest_rpc.sh


Changeset:
Modified: branches/SAMBA_4_0/source/main.mk
===================================================================
--- branches/SAMBA_4_0/source/main.mk	2007-04-29 19:54:26 UTC (rev 22574)
+++ branches/SAMBA_4_0/source/main.mk	2007-04-29 20:37:59 UTC (rev 22575)
@@ -283,7 +283,7 @@
 
 check:: test
 
-SELFTEST = $(PERL) $(srcdir)/script/tests/selftest.pl --prefix=${selftest_prefix} \
+SELFTEST = $(PERL) $(srcdir)/selftest/selftest.pl --prefix=${selftest_prefix} \
     --builddir=$(builddir) --srcdir=$(srcdir) \
     --expected-failures=$(srcdir)/samba4-knownfail \
     --skip=$(srcdir)/samba4-skip \

Modified: branches/SAMBA_4_0/source/scripting/swig/config.mk
===================================================================
--- branches/SAMBA_4_0/source/scripting/swig/config.mk	2007-04-29 19:54:26 UTC (rev 22574)
+++ branches/SAMBA_4_0/source/scripting/swig/config.mk	2007-04-29 20:37:59 UTC (rev 22575)
@@ -27,4 +27,4 @@
 # Swig testing
 
 swigtest: swig
-	./script/tests/test_swig.sh
+	./selftest/test_swig.sh

Copied: branches/SAMBA_4_0/source/selftest (from rev 22571, branches/SAMBA_4_0/source/script/tests)

Modified: branches/SAMBA_4_0/source/selftest/Samba3.pm
===================================================================
--- branches/SAMBA_4_0/source/script/tests/Samba3.pm	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/Samba3.pm	2007-04-29 20:37:59 UTC (rev 22575)
@@ -187,8 +187,8 @@
 	my $username = `PATH=/usr/ucb:$ENV{PATH} whoami`;
 	my $password = "test";
 
-	my $srcdir="$RealBin/../..";
-	my $scriptdir="$srcdir/script/tests";
+	my $srcdir="$RealBin/..";
+	my $scriptdir="$srcdir/selftest";
 	my $prefix_abs = abs_path($prefix);
 	my $shrdir="$prefix_abs/tmp";
 	my $libdir="$prefix_abs/lib";

Modified: branches/SAMBA_4_0/source/selftest/Samba4.pm
===================================================================
--- branches/SAMBA_4_0/source/script/tests/Samba4.pm	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/Samba4.pm	2007-04-29 20:37:59 UTC (rev 22575)
@@ -460,7 +460,7 @@
 	my $dnsname = "samba.example.com";
 	my $basedn = "dc=samba,dc=example,dc=com";
 	my $root = ($ENV{USER} or $ENV{LOGNAME} or `whoami`);
-	my $srcdir="$RealBin/../..";
+	my $srcdir="$RealBin/..";
 	-d $prefix or mkdir($prefix, 0777) or die("Unable to create $prefix");
 	my $prefix_abs = abs_path($prefix);
 	my $tmpdir = "$prefix_abs/tmp";

Modified: branches/SAMBA_4_0/source/selftest/Windows.pm
===================================================================
--- branches/SAMBA_4_0/source/script/tests/Windows.pm	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/Windows.pm	2007-04-29 20:37:59 UTC (rev 22575)
@@ -29,7 +29,7 @@
 
 	die ("$ENV{WINTESTCONF} could not be read.") if (! -r $ENV{WINTESTCONF});
 
-	$ENV{WINTEST_DIR}="$ENV{SRCDIR}/script/tests/win";
+	$ENV{WINTEST_DIR}="$ENV{SRCDIR}/selftest/win";
 }
 
 sub setup_env($$)

Modified: branches/SAMBA_4_0/source/selftest/selftest.pl
===================================================================
--- branches/SAMBA_4_0/source/script/tests/selftest.pl	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/selftest.pl	2007-04-29 20:37:59 UTC (rev 22575)
@@ -470,7 +470,7 @@
 	$ENV{MALLOC_CHECK_} = 2;
 }
 
-my $old_pwd = "$RealBin/../..";
+my $old_pwd = "$RealBin/..";
 
 # Backwards compatibility:
 if (defined($ENV{TEST_LDAP}) and $ENV{TEST_LDAP} eq "yes") {
@@ -644,7 +644,7 @@
 
 my @todo = ();
 
-my $testsdir = "$srcdir/script/tests";
+my $testsdir = "$srcdir/selftest";
 $ENV{CONFIGURATION} = "--configfile=$conffile";
 
 

Modified: branches/SAMBA_4_0/source/selftest/test_blackbox.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/test_blackbox.sh	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/test_blackbox.sh	2007-04-29 20:37:59 UTC (rev 22575)
@@ -16,7 +16,7 @@
 incdir=`dirname $0`
 . $incdir/test_functions.sh
 
-plantest "blackbox.smbclient" dc $incdir/../../../testprogs/blackbox/test_smbclient.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX" "$ADDARGS"
-plantest "blackbox.kinit" dc $incdir/../../../testprogs/blackbox/test_kinit.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$REALM" "$PREFIX" "$ADDARGS"
+plantest "blackbox.smbclient" dc $incdir/../../testprogs/blackbox/test_smbclient.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX" "$ADDARGS"
+plantest "blackbox.kinit" dc $incdir/../../testprogs/blackbox/test_kinit.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$REALM" "$PREFIX" "$ADDARGS"
 
-plantest "blackbox.cifsdd" dc $incdir/../../../testprogs/blackbox/test_cifsdd.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$ADDARGS"
+plantest "blackbox.cifsdd" dc $incdir/../../testprogs/blackbox/test_cifsdd.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$ADDARGS"

Modified: branches/SAMBA_4_0/source/selftest/test_s3upgrade.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/test_s3upgrade.sh	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/test_s3upgrade.sh	2007-04-29 20:37:59 UTC (rev 22575)
@@ -16,7 +16,7 @@
 mkdir -p $PREFIX
 rm -f $PREFIX/*
 
-. script/tests/test_functions.sh
+. selftest/test_functions.sh
 
 plantest "parse samba3" none bin/smbscript ../testdata/samba3/verify $CONFIGURATION ../testdata/samba3
 #plantest "upgrade" none bin/smbscript setup/upgrade $CONFIGURATION --verify --targetdir=$PREFIX ../testdata/samba3 ../testdata/samba3/smb.conf

Modified: branches/SAMBA_4_0/source/selftest/test_samba4.pl
===================================================================
--- branches/SAMBA_4_0/source/script/tests/test_samba4.pl	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/test_samba4.pl	2007-04-29 20:37:59 UTC (rev 22575)
@@ -5,13 +5,12 @@
 use lib $RealBin;
 use Samba4;
 
-my $s = new Samba4($RealBin."/../../bin", undef, $RealBin."/../../setup");
+my $s = new Samba4($RealBin."/../bin", undef, $RealBin."/../setup");
 
 ok($s);
 
-is($RealBin."/../../bin", $s->{bindir});
+is($RealBin."/../bin", $s->{bindir});
 
-
 ok($s->write_ldb_file("tmpldb", "
 dn: a=b
 a: b

Modified: branches/SAMBA_4_0/source/selftest/test_win.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/test_win.sh	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/test_win.sh	2007-04-29 20:37:59 UTC (rev 22575)
@@ -7,7 +7,7 @@
 # Copyright Brad Henry <brad at samba.org> 2006
 # Released under the GNU GPL v2 or later.
 
-. script/tests/test_functions.sh
+. selftest/test_functions.sh
 
 export SMBTORTURE_REMOTE_HOST=`perl -I$WINTEST_DIR $WINTEST_DIR/vm_get_ip.pl VM_CFG_PATH`
 if [ -z $SMBTORTURE_REMOTE_HOST ]; then

Modified: branches/SAMBA_4_0/source/selftest/tests_all.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/tests_all.sh	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/tests_all.sh	2007-04-29 20:37:59 UTC (rev 22575)
@@ -1,18 +1,18 @@
 #!/bin/sh
- $SRCDIR/script/tests/test_ejs.sh $CONFIGURATION
- $SRCDIR/script/tests/test_ldap.sh 
- $SRCDIR/script/tests/test_nbt.sh "dc"
- $SRCDIR/script/tests/test_rpc.sh
- $SRCDIR/script/tests/test_net.sh
- $SRCDIR/script/tests/test_session_key.sh
- $SRCDIR/script/tests/test_binding_string.sh
- $SRCDIR/script/tests/test_echo.sh
- $SRCDIR/script/tests/test_posix.sh
- $SRCDIR/script/tests/test_cifs.sh
- $SRCDIR/script/tests/test_local.sh
- $SRCDIR/script/tests/test_pidl.sh
- $SRCDIR/script/tests/test_blackbox.sh $PREFIX
- $SRCDIR/script/tests/test_simple.sh
- $SRCDIR/script/tests/test_s3upgrade.sh $PREFIX/upgrade
- $SRCDIR/script/tests/test_member.sh
- $SRCDIR/script/tests/test_nbt.sh "member"
+ $SRCDIR/selftest/test_ejs.sh $CONFIGURATION
+ $SRCDIR/selftest/test_ldap.sh 
+ $SRCDIR/selftest/test_nbt.sh "dc"
+ $SRCDIR/selftest/test_rpc.sh
+ $SRCDIR/selftest/test_net.sh
+ $SRCDIR/selftest/test_session_key.sh
+ $SRCDIR/selftest/test_binding_string.sh
+ $SRCDIR/selftest/test_echo.sh
+ $SRCDIR/selftest/test_posix.sh
+ $SRCDIR/selftest/test_cifs.sh
+ $SRCDIR/selftest/test_local.sh
+ $SRCDIR/selftest/test_pidl.sh
+ $SRCDIR/selftest/test_blackbox.sh $PREFIX
+ $SRCDIR/selftest/test_simple.sh
+ $SRCDIR/selftest/test_s3upgrade.sh $PREFIX/upgrade
+ $SRCDIR/selftest/test_member.sh
+ $SRCDIR/selftest/test_nbt.sh "member"

Modified: branches/SAMBA_4_0/source/selftest/tests_quick.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/tests_quick.sh	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/tests_quick.sh	2007-04-29 20:37:59 UTC (rev 22575)
@@ -2,8 +2,8 @@
 TORTURE_QUICK="yes"
 export TORTURE_QUICK
 
-$SRCDIR/script/tests/test_ejs.sh $CONFIGURATION
-$SRCDIR/script/tests/test_ldap.sh
-$SRCDIR/script/tests/test_nbt.sh
-$SRCDIR/script/tests/test_quick.sh
-$SRCDIR/script/tests/test_rpc_quick.sh
+$SRCDIR/selftest/test_ejs.sh $CONFIGURATION
+$SRCDIR/selftest/test_ldap.sh
+$SRCDIR/selftest/test_nbt.sh
+$SRCDIR/selftest/test_quick.sh
+$SRCDIR/selftest/test_rpc_quick.sh

Modified: branches/SAMBA_4_0/source/selftest/tests_win.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/tests_win.sh	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/tests_win.sh	2007-04-29 20:37:59 UTC (rev 22575)
@@ -21,10 +21,10 @@
        exit 1
  fi
 
- export WINTEST_DIR=$SRCDIR/script/tests/win
+ export WINTEST_DIR=$SRCDIR/selftest/win
  export TMPDIR=$TMPDIR
  export NETBIOSNAME=$NETBIOSNAME
 
  . $WINTESTCONF
 
- $SRCDIR/script/tests/test_win.sh
+ $SRCDIR/selftest/test_win.sh

Modified: branches/SAMBA_4_0/source/selftest/tests_win2k3_dc.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/tests_win2k3_dc.sh	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/tests_win2k3_dc.sh	2007-04-29 20:37:59 UTC (rev 22575)
@@ -11,12 +11,12 @@
 	exit 1
 fi
 
-. script/tests/test_functions.sh
+. selftest/test_functions.sh
 
 export SRCDIR=$SRCDIR
 
 tests="RPC-DRSUAPI RPC-SPOOLSS ncacn_np ncacn_ip_tcp"
 
 for name in $tests; do
-	testit $name rpc $SRCDIR/script/tests/win/wintest_2k3_dc.sh $name
+	testit $name rpc $SRCDIR/selftest/win/wintest_2k3_dc.sh $name
 done

Modified: branches/SAMBA_4_0/source/selftest/win/README
===================================================================
--- branches/SAMBA_4_0/source/script/tests/win/README	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/win/README	2007-04-29 20:37:59 UTC (rev 22575)
@@ -77,7 +77,7 @@
 Windows tests in the build farm, a .fns file will need to be created for
 your new host that exports a WINTESTCONF environment variable pointing to a
 config file used by 'make wintest'. An example of this config file can be
-found at source/script/tests/win/test_win.conf in the Samba 4 source tree. 
+found at source/selftest/win/test_win.conf in the Samba 4 source tree. 
 
 I've also included the bnhtest.fns file that I'm using for my build farm host
 below, as an example. It was modified from generic.fns.

Modified: branches/SAMBA_4_0/source/selftest/win/wintest_base.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/win/wintest_base.sh	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/win/wintest_base.sh	2007-04-29 20:37:59 UTC (rev 22575)
@@ -1,8 +1,8 @@
 #!/bin/sh
 
-. script/tests/test_functions.sh
+. selftest/test_functions.sh
 
-. script/tests/win/wintest_functions.sh
+. selftest/win/wintest_functions.sh
 
 # This variable is defined in the per-hosts .fns file.
 . $WINTESTCONF

Modified: branches/SAMBA_4_0/source/selftest/win/wintest_client.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/win/wintest_client.sh	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/win/wintest_client.sh	2007-04-29 20:37:59 UTC (rev 22575)
@@ -1,8 +1,8 @@
 #!/bin/sh
 
-. script/tests/test_functions.sh
+. selftest/test_functions.sh
 
-. script/tests/win/wintest_functions.sh
+. selftest/win/wintest_functions.sh
 
 # This variable is defined in the per-hosts .fns file.
 . $WINTESTCONF

Modified: branches/SAMBA_4_0/source/selftest/win/wintest_net.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/win/wintest_net.sh	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/win/wintest_net.sh	2007-04-29 20:37:59 UTC (rev 22575)
@@ -1,8 +1,8 @@
 #!/bin/sh
 
-. script/tests/test_functions.sh
+. selftest/test_functions.sh
 
-. script/tests/win/wintest_functions.sh
+. selftest/win/wintest_functions.sh
 
 # This variable is defined in the per-hosts .fns file.
 . $WINTESTCONF

Modified: branches/SAMBA_4_0/source/selftest/win/wintest_raw.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/win/wintest_raw.sh	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/win/wintest_raw.sh	2007-04-29 20:37:59 UTC (rev 22575)
@@ -1,8 +1,8 @@
 #!/bin/sh
 
-. script/tests/test_functions.sh
+. selftest/test_functions.sh
 
-. script/tests/win/wintest_functions.sh
+. selftest/win/wintest_functions.sh
 
 # This variable is defined in the per-hosts .fns file.
 . $WINTESTCONF

Modified: branches/SAMBA_4_0/source/selftest/win/wintest_rpc.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/win/wintest_rpc.sh	2007-04-29 13:54:51 UTC (rev 22571)
+++ branches/SAMBA_4_0/source/selftest/win/wintest_rpc.sh	2007-04-29 20:37:59 UTC (rev 22575)
@@ -1,8 +1,8 @@
 #!/bin/sh
 
-. script/tests/test_functions.sh
+. selftest/test_functions.sh
 
-. script/tests/win/wintest_functions.sh
+. selftest/win/wintest_functions.sh
 
 # This variable is defined in the per-hosts .fns file.
 . $WINTESTCONF



More information about the samba-cvs mailing list