File: 00base.t

package info (click to toggle)
libdbd-csv-perl 0.2200-5
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 276 kB
  • ctags: 37
  • sloc: perl: 1,689; makefile: 41
file content (54 lines) | stat: -rwxr-xr-x 1,044 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/usr/local/bin/perl
#
#   $Id: 00base.t,v 1.1.1.1 1999/06/13 12:59:35 joe Exp $
#
#   This is the base test, tries to install the drivers. Should be
#   executed as the very first test.
#


#
#   Include lib.pl
#
use lib '/home/jeff/data/module/SQL-Statement/SQL-Statement-1.12/lib';
use SQL::Statement;
warn  $SQL::Statement::VERSION;

$mdriver = "";
foreach $file ("lib.pl", "t/lib.pl") {
    do $file; if ($@) { print STDERR "Error while executing lib.pl: $@\n";
			   exit 10;
		      }
    if ($mdriver ne '') {
	last;
    }
}

# Base DBD Driver Test

print "1..$tests\n";

require DBI;
print "ok 1\n";

import DBI;
print "ok 2\n";

$switch = DBI->internal;
(ref $switch eq 'DBI::dr') ? print "ok 3\n" : print "not ok 3\n";



# This is a special case. install_driver should not normally be used.
$drh = DBI->install_driver($mdriver);

(ref $drh eq 'DBI::dr') ? print "ok 4\n" : print "not ok 4\n";

if ($drh->{Version}) {
    print "ok 5\n";
    print "Driver version is ", $drh->{Version}, "\n";
}

BEGIN { $tests = 5 }
exit 0;
# end.