#!/usr/bin/perl -w
use strict; 

use lib qw(./ ./DADA/perllib ../ ../DADA/perllib ../../ ../../DADA/perllib

/Users/justin/Documents/DadaMail/build/bundle/perllib

./t

); 

BEGIN{$ENV{NO_DADA_MAIL_CONFIG_IMPORT} = 1}
use dada_test_config; 

use Test::More; 
unless(dada_test_config::SQLite_test_enabled()  ) {
    plan skip_all => 'SQLite testing is not enabled...';
}
else {
   plan 'no_plan'; 
}

SKIP: {

        eval { require DBD::SQLite };

        skip "DBD::SQLite not installed", 2 if $@;
        
   
    
    my $file; 
    
    require dada_test_config; 
    
    dada_test_config::create_SQLite_db(); 
    require DADA::Config; 
    
    
    open(FILE, "t/DADA_MailingList_Settings.pl") or die $!; 
    
    {
        local $/ = undef; 
        $file = <FILE>; 
    }
    close(FILE); 
    
    eval $file;
    
    if ($@){ 
        diag $@; 
    } 
    
    dada_test_config::destroy_SQLite_db();

}
