-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move library tests out of run_test.{sh,bat} and expand
- Loading branch information
1 parent
52f1276
commit 80701ab
Showing
3 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
@echo on | ||
|
||
@rem Compile a trivial service definition to C++ | ||
|
||
protoc -I%RECIPE_DIR% --plugin=protoc-gen-grpc=%LIBRARY_PREFIX%/bin/grpc_cpp_plugin.exe --grpc_out=. hello.proto || exit /B | ||
|
||
if errorlevel 1 exit 1 | ||
if %ERRORLEVEL% neq 0 exit 1 | ||
|
||
if not exist hello.grpc.pb.h exit 1 | ||
if not exist hello.grpc.pb.cc exit 1 | ||
|
||
if not exist %PREFIX%\\Library\\lib\\address_sorting.lib exit 1 | ||
if not exist %PREFIX%\\Library\\lib\\gpr.lib exit 1 | ||
if not exist %PREFIX%\\Library\\lib\\grpc.lib exit 1 | ||
if not exist %PREFIX%\\Library\\lib\\grpc++.lib exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,9 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
# Compile a trivial service definition to C++ | ||
|
||
if [[ "${build_platform}" == "${target_platform}" ]]; then | ||
protoc -I$RECIPE_DIR --plugin=protoc-gen-grpc=$PREFIX/bin/grpc_cpp_plugin --grpc_out=. hello.proto | ||
test -f hello.grpc.pb.h | ||
test -f hello.grpc.pb.cc | ||
fi | ||
|
||
test -f $PREFIX/bin/grpc_cpp_plugin | ||
test -f $PREFIX/lib/libgrpc${SHLIB_EXT} | ||
test -f $PREFIX/lib/libgrpc_unsecure${SHLIB_EXT} | ||
test -f $PREFIX/lib/libgrpc++${SHLIB_EXT} | ||
test -f $PREFIX/lib/libgrpc++_unsecure${SHLIB_EXT} |