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
e8243592
Commit
e8243592
authored
9 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
fixes to run_tests.py to at least start building tests on Windows
parent
789e7aee
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tools/run_tests/jobset.py
+3
-1
3 additions, 1 deletion
tools/run_tests/jobset.py
tools/run_tests/run_tests.py
+2
-2
2 additions, 2 deletions
tools/run_tests/run_tests.py
vsprojects/README.md
+8
-3
8 additions, 3 deletions
vsprojects/README.md
vsprojects/make.bat
+5
-2
5 additions, 2 deletions
vsprojects/make.bat
with
18 additions
and
8 deletions
tools/run_tests/jobset.py
+
3
−
1
View file @
e8243592
...
...
@@ -144,7 +144,7 @@ def which(filename):
class
JobSpec
(
object
):
"""
Specifies what to run for a job.
"""
def
__init__
(
self
,
cmdline
,
shortname
=
None
,
environ
=
None
,
hash_targets
=
None
,
cwd
=
None
):
def
__init__
(
self
,
cmdline
,
shortname
=
None
,
environ
=
None
,
hash_targets
=
None
,
cwd
=
None
,
shell
=
False
):
"""
Arguments:
cmdline: a list of arguments to pass as the command line
...
...
@@ -161,6 +161,7 @@ class JobSpec(object):
self
.
shortname
=
cmdline
[
0
]
if
shortname
is
None
else
shortname
self
.
hash_targets
=
hash_targets
or
[]
self
.
cwd
=
cwd
self
.
shell
=
shell
def
identity
(
self
):
return
'
%r %r %r
'
%
(
self
.
cmdline
,
self
.
environ
,
self
.
hash_targets
)
...
...
@@ -187,6 +188,7 @@ class Job(object):
stderr
=
subprocess
.
STDOUT
,
stdout
=
self
.
_tempfile
,
cwd
=
spec
.
cwd
,
shell
=
spec
.
shell
,
env
=
env
)
self
.
_state
=
_RUNNING
self
.
_newline_on_success
=
newline_on_success
...
...
This diff is collapsed.
Click to expand it.
tools/run_tests/run_tests.py
+
2
−
2
View file @
e8243592
...
...
@@ -346,8 +346,8 @@ if len(build_configs) > 1:
if
platform
.
system
()
==
'
Windows
'
:
def
make_jobspec
(
cfg
,
targets
):
return
jobset
.
JobSpec
([
'
n
make
'
,
'
/f
'
,
'
Grpc.mak
'
,
'
CONFIG=%s
'
%
cfg
]
+
targets
,
cwd
=
'
vsprojects
\\
vs2013
'
)
return
jobset
.
JobSpec
([
'
make
.bat
'
,
'
CONFIG=%s
'
%
cfg
]
+
targets
,
cwd
=
'
vsprojects
'
,
shell
=
True
)
else
:
def
make_jobspec
(
cfg
,
targets
):
return
jobset
.
JobSpec
([
'
make
'
,
...
...
This diff is collapsed.
Click to expand it.
vsprojects/README.md
+
8
−
3
View file @
e8243592
...
...
@@ -19,9 +19,14 @@ After that, open `grpc.sln` with Visual Studio and hit "Build".
#Testing
Use
`
make.bat`
to build gRPC tests
.
Use
`
run_tests.py`
, that also supports Windows (with a bit limited experience)
.
```
make.bat test
REM Run from repository root.
python tools\run_tests\run_tests.py -l c
```
Also, you can
`make.bat`
directly to build and run gRPC tests.
```
REM Run from this directory.
make.bat alarm_test
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
vsprojects/make.bat
+
5
−
2
View file @
e8243592
...
...
@@ -2,8 +2,11 @@
@rem Usage: make.bat TARGET_NAME
setlocal
@rem Set VS variables
@rem Set VS variables
(uses Visual Studio 2013)
@call
"
%VS1
20COMNTOOLS
%
\..\..\vc\vcvarsall.bat"
x86
nmake
.exe
/f
Grpc
.mak
%
1
echo
%
*
nmake
/f
Grpc
.mak
%
*
exit
/b
%ERRORLEVEL%
endlocal
\ No newline at end of file
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