2 # Blackbox tests for the samba_upgradedns
3 # Copyright (C) 2006-2007 Jelmer Vernooij <jelmer@samba.org>
4 # Copyright (C) 2006-2012 Andrew Bartlett <abartlet@samba.org>
8 Usage: test_samba_upgradedns.sh SERVER REALM PREFIX PROVDIR
20 samba4bindir
="$BINDIR"
21 samba4srcdir
="$SRCDIR/source4"
23 . $
(dirname $0)/subunit.sh
25 testit
"run samba_upgradedns converting to bind9 DLZ" $PYTHON $samba4srcdir/scripting
/bin
/samba_upgradedns
--dns-backend=BIND9_DLZ
--configfile=$PROVDIR/etc
/smb.conf || failed
=$
(expr $failed + 1)
26 testit
"check that dns.keytab is present" test -f $PROVDIR/bind-dns
/dns.keytab
28 testit
"run samba_upgradedns converting to internal" $PYTHON $samba4srcdir/scripting
/bin
/samba_upgradedns
--dns-backend=SAMBA_INTERNAL
--configfile=$PROVDIR/etc
/smb.conf || failed
=$
(expr $failed + 1)
30 testit
"run samba_upgradedns converting to internal (2nd time)" $PYTHON $samba4srcdir/scripting
/bin
/samba_upgradedns
--dns-backend=SAMBA_INTERNAL
--configfile=$PROVDIR/etc
/smb.conf || failed
=$
(expr $failed + 1)
32 testit
"run samba_upgradedns converting to bind9 DLZ (2nd time)" $PYTHON $samba4srcdir/scripting
/bin
/samba_upgradedns
--dns-backend=BIND9_DLZ
--configfile=$PROVDIR/etc
/smb.conf || failed
=$
(expr $failed + 1)
34 testit
"run samba_upgradedns converting to bind9 DLZ (3rd time)" $PYTHON $samba4srcdir/scripting
/bin
/samba_upgradedns
--dns-backend=BIND9_DLZ
--configfile=$PROVDIR/etc
/smb.conf || failed
=$
(expr $failed + 1)