File: parent_classic.t

package info (click to toggle)
libsql-abstract-more-perl 1.44-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 264 kB
  • sloc: perl: 1,039; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (4)
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
use strict;
use warnings;

use Test::More;
use FindBin;
use TAP::Harness;

SKIP: {
  eval "use SQL::Abstract::Classic; 1"
    or skip "SQL::Abstract::Classic is not installed on this system";

  open my $fh, ">", \my $tap_output;
  my $harness = TAP::Harness->new({ stdout => $fh});

  $ENV{SQL_ABSTRACT_MORE_EXTENDS} = 'Classic';
  undef $ENV{SQLA_SRC_DIR};

  diag "Running the test suite with option -extends => 'Classic'";
  my @tests = glob "$FindBin::Bin/../*.t";
  my $aggr = $harness->runtests(@tests);

  diag $tap_output;
  ok $aggr->all_passed, "tests against -extends => 'Classic'";
}


done_testing;