Move selftest code to top-level.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 18 Sep 2008 17:51:03 +0000 (19:51 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 18 Sep 2008 17:51:03 +0000 (19:51 +0200)
23 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]
selftest/test_w2k3.sh [moved from source4/selftest/test_w2k3.sh 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 e86ccbe468c8d466514c1081afe8ed0f360f14b9..84b2f52058df1be2401efee325bfe11ac0679fdf 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,10 +416,10 @@ sub prefix_pathvar($$)
                $ENV{$name} = $newpath;
        }
 }
-prefix_pathvar("PKG_CONFIG_PATH", "$old_pwd/bin/pkgconfig");
+prefix_pathvar("PKG_CONFIG_PATH", "$old_pwd/source4/bin/pkgconfig");
 # Required for smbscript:
-prefix_pathvar("PATH", "$old_pwd/bin");
-prefix_pathvar("PYTHONPATH", "$old_pwd/bin/python");
+prefix_pathvar("PATH", "$old_pwd/source4/bin");
+prefix_pathvar("PYTHONPATH", "$old_pwd/source4/bin/python");
 
 if ($opt_socket_wrapper_keep_pcap) {
        # Socket wrapper keep pcap implies socket wrapper pcap
index 7a5ec4c0d024279309a32b943d7b84e7107743df..530a181f3fc906a2797dc3487682bdfcebac504c 100644 (file)
@@ -283,8 +283,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 5503a42cddf2df542627c7a0d1dd9f7438ef4ca7..9e5983d026b5c19685b948d8c6720ccb0cdeb8b3 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 3c2bb134b0ad9574bb920e571394a34102ca5a03..eff06f588e0adb4788298ccd6a11c5c5cfa0e657 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
 SCRIPTDIR=$samba4srcdir/../testprogs/ejs
 smb4torture="$samba4bindir/smbtorture $TORTURE_OPTIONS"
@@ -267,7 +265,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" dc $samba4srcdir/librpc/tests/test_ndrdump.sh
 plantest "blackbox.net" dc $samba4srcdir/utils/tests/test_net.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN"