1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/selftest/test_samba4.pl
Andrew Tridgell 3bcb693e27 s4-test: fixed test_samba4.pl for top level build
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 13:22:00 +11:00

22 lines
296 B
Perl
Executable File

#!/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, $RealBin."/../setup");
ok($s);
is("bin", $s->{bindir});
ok($s->write_ldb_file("tmpldb", "
dn: a=b
a: b
c: d
"));
unlink("tmpldb");