5 use Test
::More tests
=> 1;
7 is
(run_grep
('incomplete_init', 'Purple core is uninitialized', '2>&1'),
9 'Test login_thrasher for core validation');
13 # Returns the number of times the given regex is found when running the cmd
14 # Allows for bash redirection via bash_redir arg
18 my $bash_redir = shift;
21 $cmd .= " $bash_redir" if $bash_redir;
22 return scalar grep {/$re/} `./$cmd`;
25 # Stop hard on bad commands
26 diag
("Command \"$cmd\" is not executable!\n");