Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
229e8553
Commit
229e8553
authored
9 years ago
by
Stanley Cheung
Browse files
Options
Downloads
Patches
Plain Diff
replace backticks with $()
parent
c865c318
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/php/bin/determine_extension_dir.sh
+3
-3
3 additions, 3 deletions
src/php/bin/determine_extension_dir.sh
src/php/bin/run_gen_code_test.sh
+2
-2
2 additions, 2 deletions
src/php/bin/run_gen_code_test.sh
src/php/bin/run_tests.sh
+1
-1
1 addition, 1 deletion
src/php/bin/run_tests.sh
with
6 additions
and
6 deletions
src/php/bin/determine_extension_dir.sh
+
3
−
3
View file @
229e8553
...
@@ -29,10 +29,10 @@
...
@@ -29,10 +29,10 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
set
-e
set
-e
default_extension_dir
=
`
php
-i
|
grep
extension_dir |
sed
's/.*=> //g'
`
default_extension_dir
=
$(
php
-i
|
grep
extension_dir |
sed
's/.*=> //g'
)
if
command
-v
brew
>
/dev/null
&&
[
-d
`
brew
--prefix
`
/opt/grpc-php
]
;
then
if
command
-v
brew
>
/dev/null
&&
[
-d
$(
brew
--prefix
)
/opt/grpc-php
]
;
then
# homebrew and the grpc-php formula are installed
# homebrew and the grpc-php formula are installed
extension_dir
=
"-d extension_dir="
`
brew
--prefix
`
/opt/grpc-php
extension_dir
=
"-d extension_dir="
$(
brew
--prefix
)
/opt/grpc-php
elif
[
!
-f
$default_extension_dir
/grpc.so
]
;
then
elif
[
!
-f
$default_extension_dir
/grpc.so
]
;
then
# the grpc extension is not found in the default PHP extension dir
# the grpc extension is not found in the default PHP extension dir
# try the source modules directory
# try the source modules directory
...
...
This diff is collapsed.
Click to expand it.
src/php/bin/run_gen_code_test.sh
+
2
−
2
View file @
229e8553
...
@@ -32,7 +32,7 @@ set -e
...
@@ -32,7 +32,7 @@ set -e
cd
$(
dirname
$0
)
cd
$(
dirname
$0
)
source
./determine_extension_dir.sh
source
./determine_extension_dir.sh
export
GRPC_TEST_HOST
=
localhost:7071
export
GRPC_TEST_HOST
=
localhost:7071
php
$extension_dir
-d
extension
=
grpc.so
`
which phpunit
`
-v
--debug
--strict
\
php
$extension_dir
-d
extension
=
grpc.so
$(
which phpunit
)
-v
--debug
--strict
\
../tests/generated_code/GeneratedCodeTest.php
../tests/generated_code/GeneratedCodeTest.php
php
$extension_dir
-d
extension
=
grpc.so
`
which phpunit
`
-v
--debug
--strict
\
php
$extension_dir
-d
extension
=
grpc.so
$(
which phpunit
)
-v
--debug
--strict
\
../tests/generated_code/GeneratedCodeWithCallbackTest.php
../tests/generated_code/GeneratedCodeWithCallbackTest.php
This diff is collapsed.
Click to expand it.
src/php/bin/run_tests.sh
+
1
−
1
View file @
229e8553
...
@@ -33,5 +33,5 @@
...
@@ -33,5 +33,5 @@
set
-e
set
-e
cd
$(
dirname
$0
)
cd
$(
dirname
$0
)
source
./determine_extension_dir.sh
source
./determine_extension_dir.sh
php
$extension_dir
-d
extension
=
grpc.so
`
which phpunit
`
-v
--debug
--strict
\
php
$extension_dir
-d
extension
=
grpc.so
$(
which phpunit
)
-v
--debug
--strict
\
../tests/unit_tests
../tests/unit_tests
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment