Alien-Google-GRPC
view release on metacpan or search on metacpan
t/01test-system-bins.t view on Meta::CPAN
## no critic(RCS,VERSION,explicit,Module)
use strict;
use warnings;
use Capture::Tiny ':all';
use Test::More;
use Data::Dumper;
BEGIN {
my ($cmd_result) = capture {
system( 'protoc', '--version');
};
if ($cmd_result !~ /libprotoc.3/){
print qq{1..0 # SKIP these tests because gRPC is not installed as a system install.\n};
exit
}
}
print Dumper(\%ENV);
my ($std_out, $error_out) = capture {
system( 'grpc_cpp_plugin', '--bogus');
};
like ($error_out,
qr/unknown/i, "Does grpc_cpp_plugin run");
done_testing();
( run in 0.802 second using v1.01-cache-2.11-cpan-e1769b4cff6 )