summaryrefslogtreecommitdiff
path: root/selftest/test_samba4.pl
diff options
context:
space:
mode:
Diffstat (limited to 'selftest/test_samba4.pl')
-rwxr-xr-xselftest/test_samba4.pl20
1 files changed, 20 insertions, 0 deletions
diff --git a/selftest/test_samba4.pl b/selftest/test_samba4.pl
new file mode 100755
index 0000000000..f2935be66b
--- /dev/null
+++ b/selftest/test_samba4.pl
@@ -0,0 +1,20 @@
+#!/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");