blob: 295bcb2430c6fa9c0a90e8897a618ba910b6be16 [file] [log] [blame]
Stanley Cheungc865c312015-06-24 10:48:39 -07001#!/bin/bash
Jan Tattermusch7897ae92017-06-07 22:57:36 +02002# Copyright 2015 gRPC authors.
Craig Tiller83428812015-02-16 12:13:57 -08003#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02004# 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 Tiller83428812015-02-16 12:13:57 -08007#
Jan Tattermusch7897ae92017-06-07 22:57:36 +02008# http://www.apache.org/licenses/LICENSE-2.0
Craig Tiller83428812015-02-16 12:13:57 -08009#
Jan Tattermusch7897ae92017-06-07 22:57:36 +020010# 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 Tiller83428812015-02-16 12:13:57 -080015
mlumishb892a272014-12-09 16:28:23 -080016# Loads the local shared library, and runs all of the test cases in tests/
17# against it
Craig Tillera17bb282015-12-02 13:10:34 -080018set -ex
Stanley Cheung7a4e8e42015-09-22 16:10:27 -070019cd $(dirname $0)/../../..
20root=$(pwd)
21cd src/php/bin
Stanley Cheungc865c312015-06-24 10:48:39 -070022source ./determine_extension_dir.sh
Stanley Cheung7a4e8e42015-09-22 16:10:27 -070023# in some jenkins macos machine, somehow the PHP build script can't find libgrpc.dylib
Matt Kwong84d60462018-04-13 15:40:44 -070024export DYLD_LIBRARY_PATH=$root/libs/$CONFIG
Stanley Cheung75457ff2015-10-20 16:27:55 -070025php $extension_dir -d max_execution_time=300 $(which phpunit) -v --debug \
ZhouyihaiDing9ef881e2018-04-12 16:43:33 -070026 --exclude-group persistent_list_bound_tests ../tests/unit_tests
27
28php $extension_dir -d max_execution_time=300 $(which phpunit) -v --debug \
29 ../tests/unit_tests/PersistentChannelTests
30