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
76511a5c
Commit
76511a5c
authored
8 years ago
by
Jan Tattermusch
Browse files
Options
Downloads
Patches
Plain Diff
attempt for run_tests.py
parent
099cbf84
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/run_tests/build_csharp_coreclr.sh
+38
-0
38 additions, 0 deletions
tools/run_tests/build_csharp_coreclr.sh
tools/run_tests/run_tests.py
+33
-10
33 additions, 10 deletions
tools/run_tests/run_tests.py
with
71 additions
and
10 deletions
tools/run_tests/build_csharp_coreclr.sh
0 → 100755
+
38
−
0
View file @
76511a5c
#!/bin/bash
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following disclaimer
# in the documentation and/or other materials provided with the
# distribution.
# * Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived from
# this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
set
-ex
cd
$(
dirname
$0
)
/../../src/csharp
# TODO(jtattermusch): introduce caching
dotnet restore
.
dotnet build
-f
netstandard1.5
--configuration
$MSBUILD_CONFIG
'**/project.json'
This diff is collapsed.
Click to expand it.
tools/run_tests/run_tests.py
+
33
−
10
View file @
76511a5c
...
@@ -504,7 +504,14 @@ class CSharpLanguage(object):
...
@@ -504,7 +504,14 @@ class CSharpLanguage(object):
self
.
_make_options
=
[
_windows_toolset_option
(
self
.
args
.
compiler
),
self
.
_make_options
=
[
_windows_toolset_option
(
self
.
args
.
compiler
),
_windows_arch_option
(
self
.
args
.
arch
)]
_windows_arch_option
(
self
.
args
.
arch
)]
else
:
else
:
_check_compiler
(
self
.
args
.
compiler
,
[
'
default
'
])
if
self
.
platform
==
'
linux
'
:
if
self
.
args
.
compiler
==
'
coreclr
'
:
self
.
_docker_distro
=
'
coreclr
'
else
:
self
.
_docker_distro
=
'
jessie
'
else
:
_check_compiler
(
self
.
args
.
compiler
,
[
'
default
'
])
if
self
.
platform
==
'
mac
'
:
if
self
.
platform
==
'
mac
'
:
# On Mac, official distribution of mono is 32bit.
# On Mac, official distribution of mono is 32bit.
# TODO(jtattermusch): EMBED_ZLIB=true currently breaks the mac build
# TODO(jtattermusch): EMBED_ZLIB=true currently breaks the mac build
...
@@ -521,14 +528,25 @@ class CSharpLanguage(object):
...
@@ -521,14 +528,25 @@ class CSharpLanguage(object):
nunit_args
=
[
'
--labels=All
'
,
nunit_args
=
[
'
--labels=All
'
,
'
--noresult
'
,
'
--noresult
'
,
'
--workers=1
'
]
'
--workers=1
'
]
if
self
.
platform
==
'
windows
'
:
assembly_subdir
=
'
bin/%s
'
%
msbuild_config
assembly_extension
=
'
.exe
'
if
self
.
args
.
compiler
==
'
coreclr
'
:
# TODO(jtattermusch): make the runtime string platform-specific
assembly_subdir
+=
'
/netstandard1.5/debian.8-x64
'
assembly_extension
=
''
runtime_cmd
=
[]
elif
self
.
platform
==
'
windows
'
:
runtime_cmd
=
[]
runtime_cmd
=
[]
else
:
else
:
runtime_cmd
=
[
'
mono
'
]
runtime_cmd
=
[
'
mono
'
]
specs
=
[]
specs
=
[]
for
assembly
in
tests_by_assembly
.
iterkeys
():
for
assembly
in
tests_by_assembly
.
iterkeys
():
assembly_file
=
'
src/csharp/%s/bin/%s/%s.exe
'
%
(
assembly
,
msbuild_config
,
assembly
)
assembly_file
=
'
src/csharp/%s/%s/%s%s
'
%
(
assembly
,
assembly_subdir
,
assembly
,
assembly_extension
)
if
self
.
config
.
build_config
!=
'
gcov
'
or
self
.
platform
!=
'
windows
'
:
if
self
.
config
.
build_config
!=
'
gcov
'
or
self
.
platform
!=
'
windows
'
:
# normally, run each test as a separate process
# normally, run each test as a separate process
for
test
in
tests_by_assembly
[
assembly
]:
for
test
in
tests_by_assembly
[
assembly
]:
...
@@ -571,12 +589,15 @@ class CSharpLanguage(object):
...
@@ -571,12 +589,15 @@ class CSharpLanguage(object):
return
self
.
_make_options
;
return
self
.
_make_options
;
def
build_steps
(
self
):
def
build_steps
(
self
):
if
self
.
platform
==
'
windows
'
:
if
self
.
args
.
compiler
==
'
coreclr
'
:
return
[[
_windows_build_bat
(
self
.
args
.
compiler
),
return
[[
'
tools/run_tests/build_csharp_coreclr.sh
'
]]
'
src/csharp/Grpc.sln
'
,
'
/p:Configuration=%s
'
%
_MSBUILD_CONFIG
[
self
.
config
.
build_config
]]]
else
:
else
:
return
[[
'
tools/run_tests/build_csharp.sh
'
]]
if
self
.
platform
==
'
windows
'
:
return
[[
_windows_build_bat
(
self
.
args
.
compiler
),
'
src/csharp/Grpc.sln
'
,
'
/p:Configuration=%s
'
%
_MSBUILD_CONFIG
[
self
.
config
.
build_config
]]]
else
:
return
[[
'
tools/run_tests/build_csharp.sh
'
]]
def
post_tests_steps
(
self
):
def
post_tests_steps
(
self
):
if
self
.
platform
==
'
windows
'
:
if
self
.
platform
==
'
windows
'
:
...
@@ -588,7 +609,8 @@ class CSharpLanguage(object):
...
@@ -588,7 +609,8 @@ class CSharpLanguage(object):
return
'
Makefile
'
return
'
Makefile
'
def
dockerfile_dir
(
self
):
def
dockerfile_dir
(
self
):
return
'
tools/dockerfile/test/csharp_jessie_%s
'
%
_docker_arch_suffix
(
self
.
args
.
arch
)
return
'
tools/dockerfile/test/csharp_%s_%s
'
%
(
self
.
_docker_distro
,
_docker_arch_suffix
(
self
.
args
.
arch
))
def
__str__
(
self
):
def
__str__
(
self
):
return
'
csharp
'
return
'
csharp
'
...
@@ -838,7 +860,8 @@ argp.add_argument('--compiler',
...
@@ -838,7 +860,8 @@ argp.add_argument('--compiler',
'
clang3.4
'
,
'
clang3.5
'
,
'
clang3.6
'
,
'
clang3.7
'
,
'
clang3.4
'
,
'
clang3.5
'
,
'
clang3.6
'
,
'
clang3.7
'
,
'
vs2010
'
,
'
vs2013
'
,
'
vs2015
'
,
'
vs2010
'
,
'
vs2013
'
,
'
vs2015
'
,
'
python2.7
'
,
'
python3.4
'
,
'
python2.7
'
,
'
python3.4
'
,
'
node0.12
'
,
'
node4
'
,
'
node5
'
],
'
node0.12
'
,
'
node4
'
,
'
node5
'
,
'
coreclr
'
],
default
=
'
default
'
,
default
=
'
default
'
,
help
=
'
Selects compiler to use. Allowed values depend on the platform and language.
'
)
help
=
'
Selects compiler to use. Allowed values depend on the platform and language.
'
)
argp
.
add_argument
(
'
--build_only
'
,
argp
.
add_argument
(
'
--build_only
'
,
...
...
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