Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1477)

Unified Diff: third_party/grpc/tools/jenkins/docker_run_tests.sh

Issue 1932353002: Initial checkin of gRPC to third_party/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/grpc/tools/jenkins/docker_run.sh ('k') | third_party/grpc/tools/jenkins/run_distribtest.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/grpc/tools/jenkins/docker_run_tests.sh
diff --git a/third_party/WebKit/LayoutTests/http/tests/websocket/close_wsh.py b/third_party/grpc/tools/jenkins/docker_run_tests.sh
old mode 100644
new mode 100755
similarity index 60%
copy from third_party/WebKit/LayoutTests/http/tests/websocket/close_wsh.py
copy to third_party/grpc/tools/jenkins/docker_run_tests.sh
index 1b02d66267e294ce83977dac64f075981705647c..8d6c42cd9bf4710524eb025456b455a8892c2c67
--- a/third_party/WebKit/LayoutTests/http/tests/websocket/close_wsh.py
+++ b/third_party/grpc/tools/jenkins/docker_run_tests.sh
@@ -1,4 +1,5 @@
-# Copyright 2011, Google Inc.
+#!/bin/bash
+# Copyright 2015-2016, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -26,28 +27,41 @@
# 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.
+#
+# This script is invoked by build_docker_and_run_tests.sh inside a docker
+# container. You should never need to call this script on your own.
+
+set -e
+
+export CONFIG=$config
+export ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-3.5
+
+# Ensure that programs depending on current-user-ownership of cache directories
+# are satisfied (it's being mounted from outside the image).
+chown $(whoami) $XDG_CACHE_HOME
+mkdir -p /var/local/git
+git clone --recursive /var/local/jenkins/grpc /var/local/git/grpc
-import logging
-_GOODBYE_MESSAGE = u'Goodbye'
+mkdir -p reports
+$POST_GIT_STEP
-def web_socket_do_extra_handshake(request):
- pass # Always accept.
+exit_code=0
+$RUN_TESTS_COMMAND || exit_code=$?
-def web_socket_transfer_data(request):
- while True:
- line = request.ws_stream.receive_message()
- if line is None:
- return
- if isinstance(line, unicode):
- request.ws_stream.send_message(line, binary=False)
- if line == _GOODBYE_MESSAGE:
- return
- else:
- request.ws_stream.send_message(line, binary=True)
+cd reports
+echo '<html><head></head><body>' > index.html
+find . -maxdepth 1 -mindepth 1 -type d | sort | while read d ; do
+ d=${d#*/}
+ n=${d//_/ }
+ echo "<a href='$d/index.html'>$n</a><br />" >> index.html
+done
+echo '</body></html>' >> index.html
+cd ..
+zip -r reports.zip reports
+find . -name report.xml | xargs zip reports.zip
-def web_socket_passive_closing_handshake(request):
- return request.ws_close_code, request.ws_close_reason
+exit $exit_code
« no previous file with comments | « third_party/grpc/tools/jenkins/docker_run.sh ('k') | third_party/grpc/tools/jenkins/run_distribtest.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698