Slave.t 756B

12345678910111213141516171819202122232425
  1. use Test::More;
  2. use lib 'lib';
  3. use helper;
  4. use SugarTrail::Repo;
  5. my $repo = SugarTrail::Repo->new(root => './t/data/strepo', vcs => 'git');
  6. my $data;
  7. $data->{mp} = $repo->load_stm(stm=>'/selftest/positive/multiple_parameters.stm');
  8. $data->{mw} = $repo->load_stm(stm=>'/selftest/negative/multiple_warnings.stm');
  9. ok($data->{mp}, "multiple_parameters: master is true");
  10. ok($data->{mw}, "multiple_warnings: master is true");
  11. my $s1 = $data->{mp}->generate_slave({ proto => "imap", os => "w7a" });
  12. ok($s1, "multiple_parameters: slave is true");
  13. my $s2 = $data->{mw}->generate_slave({ os => "w7a", arch => "amd64" });
  14. ok($s2, "multiple_warnings: slave is true");
  15. &helper::dmup(s1=>\$s1);
  16. &helper::dmup(s2=>\$s2);
  17. done_testing();