Stanley Cheung | c865c31 | 2015-06-24 10:48:39 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 2 | # Copyright 2015 gRPC authors. |
Craig Tiller | 8342881 | 2015-02-16 12:13:57 -0800 | [diff] [blame] | 3 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
Craig Tiller | 8342881 | 2015-02-16 12:13:57 -0800 | [diff] [blame] | 7 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
Craig Tiller | 8342881 | 2015-02-16 12:13:57 -0800 | [diff] [blame] | 9 | # |
Jan Tattermusch | 7897ae9 | 2017-06-07 22:57:36 +0200 | [diff] [blame] | 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
Craig Tiller | 8342881 | 2015-02-16 12:13:57 -0800 | [diff] [blame] | 15 | |
mlumish | b892a27 | 2014-12-09 16:28:23 -0800 | [diff] [blame] | 16 | # Loads the local shared library, and runs all of the test cases in tests/ |
| 17 | # against it |
Craig Tiller | a17bb28 | 2015-12-02 13:10:34 -0800 | [diff] [blame] | 18 | set -ex |
Stanley Cheung | 7a4e8e4 | 2015-09-22 16:10:27 -0700 | [diff] [blame] | 19 | cd $(dirname $0)/../../.. |
| 20 | root=$(pwd) |
| 21 | cd src/php/bin |
Stanley Cheung | c865c31 | 2015-06-24 10:48:39 -0700 | [diff] [blame] | 22 | source ./determine_extension_dir.sh |
Stanley Cheung | 7a4e8e4 | 2015-09-22 16:10:27 -0700 | [diff] [blame] | 23 | # in some jenkins macos machine, somehow the PHP build script can't find libgrpc.dylib |
Matt Kwong | 84d6046 | 2018-04-13 15:40:44 -0700 | [diff] [blame] | 24 | export DYLD_LIBRARY_PATH=$root/libs/$CONFIG |
Stanley Cheung | 75457ff | 2015-10-20 16:27:55 -0700 | [diff] [blame] | 25 | php $extension_dir -d max_execution_time=300 $(which phpunit) -v --debug \ |
ZhouyihaiDing | 9ef881e | 2018-04-12 16:43:33 -0700 | [diff] [blame] | 26 | --exclude-group persistent_list_bound_tests ../tests/unit_tests |
| 27 | |
| 28 | php $extension_dir -d max_execution_time=300 $(which phpunit) -v --debug \ |
| 29 | ../tests/unit_tests/PersistentChannelTests |
| 30 | |