Skip to content

Commit

Permalink
grpc: revision
Browse files Browse the repository at this point in the history
* Fix grpc_cli missing a library for execution
  This glob pattern doesn't match the actual file on macOS anymore.
* invoke grpc_cli in test
* match output in grpc_cli test
* fix broken test
* update glob pattern to also work on Linux
* reduce diff
* make test line short
* bump revision

Closes #68383.

Co-authored-by: Sean Molenaar <[email protected]>
Signed-off-by: Carlo Cabrera <[email protected]>
Signed-off-by: Michka Popoff <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
2 people authored and BrewTestBot committed Jan 7, 2021
1 parent b9cd105 commit 287a212
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Formula/grpc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Grpc < Formula
revision: "ee5b762f33a42170144834f5ab7efda9d76c480b",
shallow: false
license "Apache-2.0"
revision 2
revision 3
head "https://github.com/grpc/grpc.git"

livecheck do
Expand Down Expand Up @@ -65,7 +65,7 @@ def install
system "cmake", *args
system "make", "grpc_cli"
bin.install "grpc_cli"
lib.install Dir["libgrpc++_test_config*.{dylib,so}.*"]
lib.install Dir["libgrpc++_test_config*.{dylib,so}*"]
end
end

Expand All @@ -80,5 +80,7 @@ def install
EOS
system ENV.cc, "test.cpp", "-I#{include}", "-L#{lib}", "-lgrpc", "-o", "test"
system "./test"
output = shell_output("grpc_cli ls localhost:#{free_port} 2>&1", 1)
assert_match "Received an error when querying services endpoint.", output
end
end

0 comments on commit 287a212

Please sign in to comment.