Rev 11884: Add simple test for the test setup code. in file:///home/jelmer/bzr.samba/SAMBA_4_0/

Jelmer Vernooij jelmer at samba.org
Tue Apr 17 01:09:18 GMT 2007


At file:///home/jelmer/bzr.samba/SAMBA_4_0/

------------------------------------------------------------
revno: 11884
revision-id: jelmer at samba.org-20070417010855-8a7r14tmvje1yn44
parent: jelmer at samba.org-20070417003941-eou3so7en80fmtav
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: SAMBA_4_0
timestamp: Tue 2007-04-17 03:08:55 +0200
message:
  Add simple test for the test setup code.
added:
  source/script/tests/test_samba4.pl test_samba4.pl-20070417005516-ue89mey9pqgv3uw5-1
=== added file 'source/script/tests/test_samba4.pl'
--- a/source/script/tests/test_samba4.pl	1970-01-01 00:00:00 +0000
+++ b/source/script/tests/test_samba4.pl	2007-04-17 01:08:55 +0000
@@ -0,0 +1,21 @@
+#!/usr/bin/perl
+
+use Test::More tests => 3;
+use FindBin qw($RealBin);
+use lib $RealBin;
+use Samba4;
+
+my $s = new Samba4($RealBin."/../../bin", undef, $RealBin."/../../setup");
+
+ok($s);
+
+is($RealBin."/../../bin", $s->{bindir});
+
+
+ok($s->write_ldb_file("tmpldb", "
+dn: a=b
+a: b
+c: d
+"));
+
+unlink("tmpldb");



More information about the samba-cvs mailing list