xref: /aosp_15_r20/external/protobuf/php/tests/gdb_test.sh (revision 1b3f573f81763fcece89efc2b6a5209149e44ab8)
1*1b3f573fSAndroid Build Coastguard Worker#!/bin/bash
2*1b3f573fSAndroid Build Coastguard Worker
3*1b3f573fSAndroid Build Coastguard Workerphp -i | grep "Configuration"
4*1b3f573fSAndroid Build Coastguard Worker
5*1b3f573fSAndroid Build Coastguard Worker# gdb --args php -dextension=../ext/google/protobuf/modules/protobuf.so `which
6*1b3f573fSAndroid Build Coastguard Worker# phpunit` --bootstrap autoload.php tmp_test.php
7*1b3f573fSAndroid Build Coastguard Worker#
8*1b3f573fSAndroid Build Coastguard Worker# gdb --args php -dextension=../ext/google/protobuf/modules/protobuf.so `which phpunit` --bootstrap autoload.php generated_class_test.php
9*1b3f573fSAndroid Build Coastguard Workergdb --args php -dextension=../ext/google/protobuf/modules/protobuf.so `which phpunit` --bootstrap autoload.php encode_decode_test.php
10*1b3f573fSAndroid Build Coastguard Worker#
11*1b3f573fSAndroid Build Coastguard Worker# gdb --args php -dextension=../ext/google/protobuf/modules/protobuf.so memory_leak_test.php
12*1b3f573fSAndroid Build Coastguard Worker#
13*1b3f573fSAndroid Build Coastguard Worker# USE_ZEND_ALLOC=0 valgrind --leak-check=yes php -dextension=../ext/google/protobuf/modules/protobuf.so memory_leak_test.php
14