s4:upgradeprovision Rework script, and reset machine account pw
[Samba/cd1.git] / selftest / test_samba4.pl
blob59763afdaa92273157a8257e4540901dc9ec3956
1 #!/usr/bin/perl
3 use Test::More tests => 3;
4 use FindBin qw($RealBin);
5 use lib $RealBin;
6 use lib "$RealBin/target";
7 use Samba4;
9 my $s = new Samba4($RealBin."/../source4/bin", undef, $RealBin."/../setup");
11 ok($s);
13 is($RealBin."/../source4/bin", $s->{bindir});
15 ok($s->write_ldb_file("tmpldb", "
16 dn: a=b
17 a: b
18 c: d
19 "));
21 unlink("tmpldb");