| 1 | use strict; | ||
| 2 | use warnings; | ||
| 3 | |||
| 4 | our $VERSION = '0.000150'; | ||
| 5 | |||
| 6 | use Test2::Harness::UI; | ||
| 7 | use Test2::Harness::UI::Config; | ||
| 8 | use Test2::Harness::UI::Importer; | ||
| 9 | |||
| 10 | my ($dsn, $user, $pass, $seed) = @ARGV; | ||
| 11 | |||
| 12 | $user ||= ''; | ||
| 13 | $pass ||= ''; | ||
| 14 | |||
| 15 | srand($seed) if $seed; | ||
| 16 | |||
| 17 | my $config = Test2::Harness::UI::Config->new( | ||
| 18 | dbi_dsn => $dsn, | ||
| 19 | dbi_user => $user, | ||
| 20 | dbi_pass => $pass, | ||
| 21 | ); | ||
| 22 | |||
| 23 | $SIG{INT} = sub { exit 0 }; | ||
| 24 | $SIG{TERM} = sub { exit 0 }; | ||
| 25 | |||
| 26 | Test2::Harness::UI::Importer->new(config => $config)->run; |