selftest Remove selftest of the test subsystem
authorAndrew Bartlett <abartlet@samba.org>
Fri, 15 Apr 2011 06:58:50 +0000 (16:58 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 16 Apr 2011 09:43:05 +0000 (11:43 +0200)
The intereactions between selftest.pl and the target are now too
complex to unit test like this any more.

Andrew Bartlett

selftest/test_samba4.pl [deleted file]
source4/selftest/tests.py

diff --git a/selftest/test_samba4.pl b/selftest/test_samba4.pl
deleted file mode 100755 (executable)
index 5bf3913..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/usr/bin/perl
-
-use Test::More tests => 3;
-use FindBin qw($RealBin);
-use lib $RealBin;
-use lib "$RealBin/target";
-use Samba4;
-
-my $s = new Samba4("bin", undef, undef, undef, $RealBin."/../setup");
-
-ok($s);
-
-is("bin", $s->{bindir});
-
-ok($s->write_ldb_file("tmpldb", "
-dn: a=b
-a: b
-c: d
-"));
-
-unlink("tmpldb");
index dfbbc5752fae0c476a5ac03c1c654f712ee156e4..6d4d18f7c650518083bf819b72ae7f5d7471f1fd 100755 (executable)
@@ -251,7 +251,6 @@ plansmbtorturetestsuite("drs.unit", "none", "ncalrpc:")
 for f in sorted(os.listdir(os.path.join(samba4srcdir, "../pidl/tests"))):
     if f.endswith(".pl"):
         planperltestsuite("pidl.%s" % f[:-3], os.path.normpath(os.path.join(samba4srcdir, "../pidl/tests", f)))
-planperltestsuite("selftest.samba4", os.path.normpath(os.path.join(samba4srcdir, "../selftest/test_samba4.pl")))
 
 # Blackbox Tests:
 # tests that interact directly with the command-line tools rather than using