diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-09-18 19:51:03 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-09-18 19:51:03 +0200 |
commit | 182a0e349082fd43ec410cd6ac512376748fa27d (patch) | |
tree | 77780338f77b52287ca635d7aaacc46f846522a0 | |
parent | cb16488cb1bc29657a024a74c21b33445cde87b0 (diff) | |
download | samba-182a0e349082fd43ec410cd6ac512376748fa27d.tar.gz |
Move selftest code to top-level.
-rw-r--r-- | selftest/README (renamed from source4/selftest/README) | 0 | ||||
-rw-r--r-- | selftest/SocketWrapper.pm (renamed from source4/selftest/SocketWrapper.pm) | 0 | ||||
-rw-r--r-- | selftest/Subunit.pm (renamed from source4/selftest/Subunit.pm) | 0 | ||||
-rw-r--r-- | selftest/TODO (renamed from source4/selftest/TODO) | 0 | ||||
-rw-r--r-- | selftest/output/buildfarm.pm (renamed from source4/selftest/output/buildfarm.pm) | 0 | ||||
-rw-r--r-- | selftest/output/html.pm (renamed from source4/selftest/output/html.pm) | 0 | ||||
-rw-r--r-- | selftest/output/plain.pm (renamed from source4/selftest/output/plain.pm) | 0 | ||||
-rw-r--r-- | selftest/output/testresults.css (renamed from source4/selftest/output/testresults.css) | 0 | ||||
-rwxr-xr-x | selftest/selftest.pl (renamed from source4/selftest/selftest.pl) | 10 | ||||
-rw-r--r-- | selftest/target/Kvm.pm (renamed from source4/selftest/target/Kvm.pm) | 0 | ||||
-rw-r--r-- | selftest/target/Samba3.pm (renamed from source4/selftest/target/Samba3.pm) | 0 | ||||
-rw-r--r-- | selftest/target/Samba4.pm (renamed from source4/selftest/target/Samba4.pm) | 0 | ||||
-rw-r--r-- | selftest/target/Windows.pm (renamed from source4/selftest/target/Windows.pm) | 0 | ||||
-rwxr-xr-x | selftest/test_samba4.pl (renamed from source4/selftest/test_samba4.pl) | 0 | ||||
-rwxr-xr-x | selftest/test_subunit.pl (renamed from source4/selftest/test_subunit.pl) | 0 | ||||
-rwxr-xr-x | selftest/test_w2k3.sh (renamed from source4/selftest/test_w2k3.sh) | 0 | ||||
-rw-r--r-- | source4/Makefile | 4 | ||||
-rw-r--r-- | source4/selftest/config.mk | 6 | ||||
-rw-r--r-- | source4/selftest/knownfail (renamed from source4/samba4-knownfail) | 0 | ||||
-rw-r--r-- | source4/selftest/quick (renamed from source4/samba4-quick) | 0 | ||||
-rw-r--r-- | source4/selftest/skip (renamed from source4/samba4-skip) | 0 | ||||
-rw-r--r-- | source4/selftest/slow (renamed from source4/samba4-slow) | 0 | ||||
-rwxr-xr-x | source4/selftest/tests.sh (renamed from source4/selftest/samba4_tests.sh) | 8 |
23 files changed, 13 insertions, 15 deletions
diff --git a/source4/selftest/README b/selftest/README index f8be20a569c..f8be20a569c 100644 --- a/source4/selftest/README +++ b/selftest/README diff --git a/source4/selftest/SocketWrapper.pm b/selftest/SocketWrapper.pm index e63605b8dfd..e63605b8dfd 100644 --- a/source4/selftest/SocketWrapper.pm +++ b/selftest/SocketWrapper.pm diff --git a/source4/selftest/Subunit.pm b/selftest/Subunit.pm index 05e51da5412..05e51da5412 100644 --- a/source4/selftest/Subunit.pm +++ b/selftest/Subunit.pm diff --git a/source4/selftest/TODO b/selftest/TODO index 67776ffc766..67776ffc766 100644 --- a/source4/selftest/TODO +++ b/selftest/TODO diff --git a/source4/selftest/output/buildfarm.pm b/selftest/output/buildfarm.pm index cee6c1e63a8..cee6c1e63a8 100644 --- a/source4/selftest/output/buildfarm.pm +++ b/selftest/output/buildfarm.pm diff --git a/source4/selftest/output/html.pm b/selftest/output/html.pm index 1049527129c..1049527129c 100644 --- a/source4/selftest/output/html.pm +++ b/selftest/output/html.pm diff --git a/source4/selftest/output/plain.pm b/selftest/output/plain.pm index 4bec4e0fdc1..4bec4e0fdc1 100644 --- a/source4/selftest/output/plain.pm +++ b/selftest/output/plain.pm diff --git a/source4/selftest/output/testresults.css b/selftest/output/testresults.css index 66d1d6b2ad2..66d1d6b2ad2 100644 --- a/source4/selftest/output/testresults.css +++ b/selftest/output/testresults.css diff --git a/source4/selftest/selftest.pl b/selftest/selftest.pl index e86ccbe468c..84b2f52058d 100755 --- a/source4/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -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 diff --git a/source4/selftest/target/Kvm.pm b/selftest/target/Kvm.pm index 3b17a2909c6..3b17a2909c6 100644 --- a/source4/selftest/target/Kvm.pm +++ b/selftest/target/Kvm.pm diff --git a/source4/selftest/target/Samba3.pm b/selftest/target/Samba3.pm index b0c4eb22bd0..b0c4eb22bd0 100644 --- a/source4/selftest/target/Samba3.pm +++ b/selftest/target/Samba3.pm diff --git a/source4/selftest/target/Samba4.pm b/selftest/target/Samba4.pm index 8835f69c6c5..8835f69c6c5 100644 --- a/source4/selftest/target/Samba4.pm +++ b/selftest/target/Samba4.pm diff --git a/source4/selftest/target/Windows.pm b/selftest/target/Windows.pm index d0c90d7f7b5..d0c90d7f7b5 100644 --- a/source4/selftest/target/Windows.pm +++ b/selftest/target/Windows.pm diff --git a/source4/selftest/test_samba4.pl b/selftest/test_samba4.pl index f2935be66bc..f2935be66bc 100755 --- a/source4/selftest/test_samba4.pl +++ b/selftest/test_samba4.pl diff --git a/source4/selftest/test_subunit.pl b/selftest/test_subunit.pl index 28522ed49f3..28522ed49f3 100755 --- a/source4/selftest/test_subunit.pl +++ b/selftest/test_subunit.pl diff --git a/source4/selftest/test_w2k3.sh b/selftest/test_w2k3.sh index 3cd034d0003..3cd034d0003 100755 --- a/source4/selftest/test_w2k3.sh +++ b/selftest/test_w2k3.sh diff --git a/source4/Makefile b/source4/Makefile index 7a5ec4c0d02..530a181f3fc 100644 --- a/source4/Makefile +++ b/source4/Makefile @@ -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` diff --git a/source4/selftest/config.mk b/source4/selftest/config.mk index 5503a42cddf..9e5983d026b 100644 --- a/source4/selftest/config.mk +++ b/source4/selftest/config.mk @@ -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 diff --git a/source4/samba4-knownfail b/source4/selftest/knownfail index f99db4fb1b0..f99db4fb1b0 100644 --- a/source4/samba4-knownfail +++ b/source4/selftest/knownfail diff --git a/source4/samba4-quick b/source4/selftest/quick index 3627a87bbe5..3627a87bbe5 100644 --- a/source4/samba4-quick +++ b/source4/selftest/quick diff --git a/source4/samba4-skip b/source4/selftest/skip index b1313adea0c..b1313adea0c 100644 --- a/source4/samba4-skip +++ b/source4/selftest/skip diff --git a/source4/samba4-slow b/source4/selftest/slow index d414368de89..d414368de89 100644 --- a/source4/samba4-slow +++ b/source4/selftest/slow diff --git a/source4/selftest/samba4_tests.sh b/source4/selftest/tests.sh index 3c2bb134b0a..eff06f588e0 100755 --- a/source4/selftest/samba4_tests.sh +++ b/source4/selftest/tests.sh @@ -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" |