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
e70b3c5d
Commit
e70b3c5d
authored
9 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
use per-language dockerfiles
parent
5ed57567
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/run_tests/run_tests.py
+19
-14
19 additions, 14 deletions
tools/run_tests/run_tests.py
with
19 additions
and
14 deletions
tools/run_tests/run_tests.py
+
19
−
14
View file @
e70b3c5d
...
...
@@ -186,7 +186,7 @@ class CLanguage(object):
return
True
def
dockerfile_dir
(
self
,
config
,
arch
):
return
None
return
'
tools/dockerfile/test/cxx_jessie_%s
'
%
_docker_arch_suffix
(
arch
)
def
__str__
(
self
):
return
self
.
make_target
...
...
@@ -225,7 +225,7 @@ class NodeLanguage(object):
return
False
def
dockerfile_dir
(
self
,
config
,
arch
):
return
None
return
'
tools/dockerfile/test/node_jessie_%s
'
%
_docker_arch_suffix
(
arch
)
def
__str__
(
self
):
return
'
node
'
...
...
@@ -259,7 +259,7 @@ class PhpLanguage(object):
return
False
def
dockerfile_dir
(
self
,
config
,
arch
):
return
None
return
'
tools/dockerfile/test/php_jessie_%s
'
%
_docker_arch_suffix
(
arch
)
def
__str__
(
self
):
return
'
php
'
...
...
@@ -315,7 +315,7 @@ class PythonLanguage(object):
return
False
def
dockerfile_dir
(
self
,
config
,
arch
):
return
None
return
'
tools/dockerfile/test/python_jessie_%s
'
%
_docker_arch_suffix
(
arch
)
def
__str__
(
self
):
return
'
python
'
...
...
@@ -349,7 +349,7 @@ class RubyLanguage(object):
return
False
def
dockerfile_dir
(
self
,
config
,
arch
):
return
None
return
'
tools/dockerfile/test/ruby_jessie_%s
'
%
_docker_arch_suffix
(
arch
)
def
__str__
(
self
):
return
'
ruby
'
...
...
@@ -434,7 +434,7 @@ class CSharpLanguage(object):
return
False
def
dockerfile_dir
(
self
,
config
,
arch
):
return
None
return
'
tools/dockerfile/test/csharp_jessie_%s
'
%
_docker_arch_suffix
(
arch
)
def
__str__
(
self
):
return
'
csharp
'
...
...
@@ -506,7 +506,7 @@ class Sanity(object):
return
False
def
dockerfile_dir
(
self
,
config
,
arch
):
return
'
tools/dockerfile/
grpc_
sanity
'
return
'
tools/dockerfile/
test/
sanity
'
def
__str__
(
self
):
return
'
sanity
'
...
...
@@ -630,19 +630,24 @@ def _windows_toolset_option(compiler):
sys
.
exit
(
1
)
def
_docker_arch_suffix
(
arch
):
"""
Returns suffix to dockerfile dir to use.
"""
if
arch
==
'
default
'
or
arch
==
'
x64
'
:
return
'
x64
'
elif
arch
==
'
x86
'
:
return
'
x86
'
else
:
print
'
Architecture %s not supported with current settings.
'
%
arch
sys
.
exit
(
1
)
def
_get_dockerfile_dir
(
language
,
cfg
,
arch
):
"""
Returns dockerfile to use
"""
custom
=
language
.
dockerfile_dir
(
cfg
,
arch
)
if
custom
:
return
custom
else
:
if
arch
==
'
default
'
or
arch
==
'
x64
'
:
return
'
tools/dockerfile/grpc_tests_multilang_x64
'
elif
arch
==
'
x86
'
:
return
'
tools/dockerfile/grpc_tests_multilang_x86
'
else
:
print
'
Architecture %s not supported with current settings.
'
%
arch
sys
.
exit
(
1
)
return
'
tools/dockerfile/grpc_tests_multilang_%s
'
%
_docker_arch_suffix
(
arch
)
def
runs_per_test_type
(
arg_str
):
"""
Auxilary function to parse the
"
runs_per_test
"
flag.
...
...
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