Merge branch 'master' of ssh://git.samba.org/data/git/samba into selftest
authorJelmer Vernooij <jelmer@samba.org>
Sat, 11 Oct 2008 01:12:21 +0000 (03:12 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 11 Oct 2008 01:12:21 +0000 (03:12 +0200)
Conflicts:
selftest/selftest.pl

22 files changed:
selftest/README [moved from source4/selftest/README with 100% similarity]
selftest/SocketWrapper.pm [moved from source4/selftest/SocketWrapper.pm with 100% similarity]
selftest/Subunit.pm [moved from source4/selftest/Subunit.pm with 100% similarity]
selftest/TODO [moved from source4/selftest/TODO with 100% similarity]
selftest/output/buildfarm.pm [moved from source4/selftest/output/buildfarm.pm with 100% similarity]
selftest/output/html.pm [moved from source4/selftest/output/html.pm with 100% similarity]
selftest/output/plain.pm [moved from source4/selftest/output/plain.pm with 100% similarity]
selftest/output/testresults.css [moved from source4/selftest/output/testresults.css with 100% similarity]
selftest/selftest.pl [moved from source4/selftest/selftest.pl with 98% similarity]
selftest/target/Kvm.pm [moved from source4/selftest/target/Kvm.pm with 100% similarity]
selftest/target/Samba3.pm [moved from source4/selftest/target/Samba3.pm with 100% similarity]
selftest/target/Samba4.pm [moved from source4/selftest/target/Samba4.pm with 100% similarity]
selftest/target/Windows.pm [moved from source4/selftest/target/Windows.pm with 100% similarity]
selftest/test_samba4.pl [moved from source4/selftest/test_samba4.pl with 100% similarity]
selftest/test_subunit.pl [moved from source4/selftest/test_subunit.pl with 100% similarity]
source4/Makefile
source4/selftest/config.mk
source4/selftest/knownfail [moved from source4/samba4-knownfail with 100% similarity]
source4/selftest/quick [moved from source4/samba4-quick with 100% similarity]
source4/selftest/skip [moved from source4/samba4-skip with 100% similarity]
source4/selftest/slow [moved from source4/samba4-slow with 100% similarity]
source4/selftest/tests.sh [moved from source4/selftest/samba4_tests.sh with 99% similarity]

similarity index 100%
rename from source4/selftest/README
rename to selftest/README
similarity index 100%
rename from source4/selftest/TODO
rename to selftest/TODO
similarity index 98%
rename from source4/selftest/selftest.pl
rename to selftest/selftest.pl
index 92aa67e8d3e2f74a68c6a1ab3b05a59f769fedb7..1477d10d469bb590bb6ed4dfc552f2a54cdd9389 100755 (executable)
@@ -405,8 +405,8 @@ if (defined($ENV{RUN_FROM_BUILD_FARM}) and
 
 my $tls_enabled = not $opt_quick;
 $ENV{TLS_ENABLED} = ($tls_enabled?"yes":"no");
-$ENV{LDB_MODULES_PATH} = "$old_pwd/bin/modules/ldb";
-$ENV{LD_SAMBA_MODULE_PATH} = "$old_pwd/bin/modules";
+$ENV{LDB_MODULES_PATH} = "$old_pwd/source4/bin/modules/ldb";
+$ENV{LD_SAMBA_MODULE_PATH} = "$old_pwd/source4/bin/modules";
 sub prefix_pathvar($$)
 {
        my ($name, $newpath) = @_;
@@ -416,8 +416,8 @@ sub prefix_pathvar($$)
                $ENV{$name} = $newpath;
        }
 }
-prefix_pathvar("PKG_CONFIG_PATH", "$old_pwd/bin/pkgconfig");
-prefix_pathvar("PYTHONPATH", "$old_pwd/bin/python");
+prefix_pathvar("PKG_CONFIG_PATH", "$old_pwd/source4/bin/pkgconfig");
+prefix_pathvar("PYTHONPATH", "$old_pwd/source4/bin/python");
 
 if ($opt_socket_wrapper_keep_pcap) {
        # Socket wrapper keep pcap implies socket wrapper pcap
index cab82674d212d4ebdc9c4f713b326e784fa86aaf..1b5df9fa951849ee62a9b2a96fe069042595a585 100644 (file)
@@ -301,8 +301,8 @@ data.mk: config.status $(MK_FILES)
 testcov-html:: 
 
 include $(pidldir)/config.mk
-selftestdir := $(srcdir)/selftest
-include $(selftestdir)/config.mk
+selftestdir := $(srcdir)/../selftest
+include $(srcdir)/selftest/config.mk
 
 showflags::
        @echo '  pwd        = '`/bin/pwd`
index e4bb2df0ad90c11531cf1d187e27e81082cd9e8e..dd440edb533625b4b0818f468162a00a93a427cc 100644 (file)
@@ -2,12 +2,12 @@ TEST_FORMAT = plain
 
 SELFTEST = $(LD_LIBPATH_OVERRIDE) $(PERL) $(selftestdir)/selftest.pl --prefix=${selftest_prefix} \
     --builddir=$(builddir) --srcdir=$(srcdir) \
-    --expected-failures=$(srcdir)/samba4-knownfail \
+    --expected-failures=$(srcdir)/selftest/knownfail \
        --format=$(TEST_FORMAT) \
-    --exclude=$(srcdir)/samba4-skip --testlist="./selftest/samba4_tests.sh|" \
+    --exclude=$(srcdir)/selftest/skip --testlist="./selftest/tests.sh|" \
     $(TEST_OPTIONS) 
 
-SELFTEST_NOSLOW_OPTS = --exclude=$(srcdir)/samba4-slow
+SELFTEST_NOSLOW_OPTS = --exclude=$(srcdir)/selftest/slow
 SELFTEST_QUICK_OPTS = $(SELFTEST_NOSLOW_OPTS) --quick 
 
 slowtest:: everything
similarity index 100%
rename from source4/samba4-quick
rename to source4/selftest/quick
similarity index 100%
rename from source4/samba4-skip
rename to source4/selftest/skip
similarity index 100%
rename from source4/samba4-slow
rename to source4/selftest/slow
similarity index 99%
rename from source4/selftest/samba4_tests.sh
rename to source4/selftest/tests.sh
index 9fc71a104f4006199d3ed17602aadcf67a1635c3..fa799f51ffde2ef12977db2a75256f3db9dd17d8 100755 (executable)
@@ -23,8 +23,6 @@ then
        PERL=perl
 fi
 
-incdir=`dirname $0`
-
 plantest() {
        name=$1
        env=$2
@@ -56,9 +54,9 @@ plansmbtorturetest() {
        plantest "$modname" "$env" $cmdline
 }
 
-$incdir/../bin/smbtorture -V
+bin/smbtorture -V
 
-samba4srcdir=$incdir/..
+samba4srcdir=.
 samba4bindir=$samba4srcdir/bin
 smb4torture="$samba4bindir/smbtorture $TORTURE_OPTIONS"
 
@@ -263,7 +261,7 @@ fi
 # the API. These mainly test that the various command-line options of commands 
 # work correctly.
 
-bbdir=$incdir/../../testprogs/blackbox
+bbdir=../testprogs/blackbox
 
 plantest "blackbox.ndrdump" none $samba4srcdir/librpc/tests/test_ndrdump.sh
 plantest "blackbox.net" dc $samba4srcdir/utils/tests/test_net.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN"