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
c279165f
Commit
c279165f
authored
10 years ago
by
murgatroid99
Browse files
Options
Downloads
Patches
Plain Diff
Got run_tests.py and node tests working
parent
564b944b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tools/run_tests/build_node.sh
+3
-4
3 additions, 4 deletions
tools/run_tests/build_node.sh
tools/run_tests/run_node.sh
+1
-1
1 addition, 1 deletion
tools/run_tests/run_node.sh
tools/run_tests/run_tests.py
+2
-2
2 additions, 2 deletions
tools/run_tests/run_tests.py
with
6 additions
and
7 deletions
tools/run_tests/build_node.sh
+
3
−
4
View file @
c279165f
...
...
@@ -2,19 +2,18 @@
set
-ex
CONFIG
=
${
CONFIG
:-
opt
}
# change to grpc repo root
cd
$(
dirname
$0
)
/../..
# tells npm install to look for files in that directory
export
GRPC_ROOT
=
`
pwd
`
# tells npm install the subdirectory with library files
export
GRPC_LIB_SUBDIR
=
libs/
opt
export
GRPC_LIB_SUBDIR
=
libs/
$CONFIG
# tells npm install not to use default locations
export
GRPC_NO_INSTALL
=
yes
# build the c libraries
make
-j
static_c
cd
src/node
npm
install
This diff is collapsed.
Click to expand it.
tools/run_tests/run_node.sh
100644 → 100755
+
1
−
1
View file @
c279165f
...
...
@@ -7,4 +7,4 @@ cd $(dirname $0)/../..
root
=
`
pwd
`
$root
/src/node/node_modules/mocha/bin/mocha
$root
/node/test
$root
/src/node/node_modules/mocha/bin/mocha
$root
/
src/
node/test
This diff is collapsed.
Click to expand it.
tools/run_tests/run_tests.py
+
2
−
2
View file @
c279165f
...
...
@@ -68,7 +68,7 @@ class NodeLanguage(object):
return
[
'
tools/run_tests/run_node.sh
'
]
def
make_targets
(
self
):
return
[]
return
[
'
static_c
'
]
def
build_steps
(
self
):
return
[[
'
tools/run_tests/build_node.sh
'
]]
...
...
@@ -205,7 +205,7 @@ class TestCache(object):
def
_build_and_run
(
check_cancelled
,
newline_on_success
,
cache
):
"""
Do one pass of building & running tests.
"""
# build latest, sharing cpu between the various makes
if
not
jobset
.
run
(
build_steps
):
if
not
jobset
.
run
(
build_steps
,
maxjobs
=
1
):
return
1
# run all the 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