Nathaniel Manista | 840615e | 2015-01-22 20:31:47 +0000 | [diff] [blame] | 1 | #!/bin/bash |
Craig Tiller | 0605995 | 2015-02-18 08:34:56 -0800 | [diff] [blame] | 2 | # Copyright 2015, Google Inc. |
Craig Tiller | 8342881 | 2015-02-16 12:13:57 -0800 | [diff] [blame] | 3 | # All rights reserved. |
| 4 | # |
| 5 | # Redistribution and use in source and binary forms, with or without |
| 6 | # modification, are permitted provided that the following conditions are |
| 7 | # met: |
| 8 | # |
| 9 | # * Redistributions of source code must retain the above copyright |
| 10 | # notice, this list of conditions and the following disclaimer. |
| 11 | # * Redistributions in binary form must reproduce the above |
| 12 | # copyright notice, this list of conditions and the following disclaimer |
| 13 | # in the documentation and/or other materials provided with the |
| 14 | # distribution. |
| 15 | # * Neither the name of Google Inc. nor the names of its |
| 16 | # contributors may be used to endorse or promote products derived from |
| 17 | # this software without specific prior written permission. |
| 18 | # |
| 19 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 20 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 21 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 22 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 23 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 24 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 25 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 26 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Nathaniel Manista | 840615e | 2015-01-22 20:31:47 +0000 | [diff] [blame] | 30 | |
| 31 | set -ex |
| 32 | |
| 33 | # change to grpc repo root |
| 34 | cd $(dirname $0)/../.. |
| 35 | |
| 36 | root=`pwd` |
Craig Tiller | 75be91a | 2015-02-09 23:24:24 -0800 | [diff] [blame] | 37 | export LD_LIBRARY_PATH=$root/libs/opt |
| 38 | source python2.7_virtual_environment/bin/activate |
Nathaniel Manista | b8b0adf | 2015-01-29 00:30:51 +0000 | [diff] [blame] | 39 | # TODO(issue 215): Properly itemize these in run_tests.py so that they can be parallelized. |
Masood Malekghassemi | b13673d | 2015-02-20 18:21:02 -0800 | [diff] [blame] | 40 | python2.7 -B test/compiler/python_plugin_test.py |
Nathaniel Manista | c25a3b3 | 2015-02-18 02:46:17 +0000 | [diff] [blame] | 41 | python2.7 -B -m grpc._adapter._blocking_invocation_inline_service_test |
| 42 | python2.7 -B -m grpc._adapter._c_test |
| 43 | python2.7 -B -m grpc._adapter._event_invocation_synchronous_event_service_test |
| 44 | python2.7 -B -m grpc._adapter._future_invocation_asynchronous_event_service_test |
| 45 | python2.7 -B -m grpc._adapter._links_test |
| 46 | python2.7 -B -m grpc._adapter._lonely_rear_link_test |
| 47 | python2.7 -B -m grpc._adapter._low_test |
Nathaniel Manista | 7efe54e | 2015-02-20 20:42:01 +0000 | [diff] [blame] | 48 | python2.7 -B -m grpc.framework.assembly.implementations_test |
Nathaniel Manista | c25a3b3 | 2015-02-18 02:46:17 +0000 | [diff] [blame] | 49 | python2.7 -B -m grpc.framework.base.packets.implementations_test |
| 50 | python2.7 -B -m grpc.framework.face.blocking_invocation_inline_service_test |
| 51 | python2.7 -B -m grpc.framework.face.event_invocation_synchronous_event_service_test |
| 52 | python2.7 -B -m grpc.framework.face.future_invocation_asynchronous_event_service_test |
| 53 | python2.7 -B -m grpc.framework.foundation._later_test |
| 54 | python2.7 -B -m grpc.framework.foundation._logging_pool_test |
Nathaniel Manista | b8b0adf | 2015-01-29 00:30:51 +0000 | [diff] [blame] | 55 | # TODO(nathaniel): Get tests working under 3.4 (requires 3.X-friendly protobuf) |
Craig Tiller | ce5021b | 2015-02-18 09:25:21 -0800 | [diff] [blame] | 56 | # python3.4 -B -m unittest discover -s src/python -p '*.py' |