tests.sh 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. #!/bin/bash
  2. #
  3. # Build and runs tests for the protobuf project. We use this script to run
  4. # tests on kokoro (Ubuntu and MacOS). It can run locally as well but you
  5. # will need to make sure the required compilers/tools are available.
  6. # For when some other test needs the C++ main build, including protoc and
  7. # libprotobuf.
  8. internal_build_cpp() {
  9. if [ -f src/protoc ]; then
  10. # Already built.
  11. return
  12. fi
  13. # Initialize any submodules.
  14. git submodule update --init --recursive
  15. ./autogen.sh
  16. ./configure CXXFLAGS="-fPIC -std=c++11" # -fPIC is needed for python cpp test.
  17. # See python/setup.py for more details
  18. make -j4
  19. }
  20. build_cpp() {
  21. internal_build_cpp
  22. make check -j4 || (cat src/test-suite.log; false)
  23. cd conformance && make test_cpp && cd ..
  24. # The benchmark code depends on cmake, so test if it is installed before
  25. # trying to do the build.
  26. if [[ $(type cmake 2>/dev/null) ]]; then
  27. # Verify benchmarking code can build successfully.
  28. cd benchmarks && make cpp-benchmark && cd ..
  29. else
  30. echo ""
  31. echo "WARNING: Skipping validation of the bench marking code, cmake isn't installed."
  32. echo ""
  33. fi
  34. }
  35. build_cpp_tcmalloc() {
  36. internal_build_cpp
  37. ./configure LIBS=-ltcmalloc && make clean && make \
  38. PTHREAD_CFLAGS='-pthread -DGOOGLE_PROTOBUF_HEAP_CHECK_DRACONIAN' \
  39. check
  40. cd src
  41. PPROF_PATH=/usr/bin/google-pprof HEAPCHECK=draconian ./protobuf-test
  42. }
  43. build_cpp_distcheck() {
  44. grep -q -- "-Og" src/Makefile.am &&
  45. echo "The -Og flag is incompatible with Clang versions older than 4.0." &&
  46. exit 1
  47. # Initialize any submodules.
  48. git submodule update --init --recursive
  49. ./autogen.sh
  50. ./configure
  51. make dist
  52. # List all files that should be included in the distribution package.
  53. git ls-files | grep "^\(java\|python\|objectivec\|csharp\|js\|ruby\|php\|cmake\|examples\|src/google/protobuf/.*\.proto\)" |\
  54. grep -v ".gitignore" | grep -v "java/compatibility_tests" |\
  55. grep -v "python/compatibility_tests" | grep -v "csharp/compatibility_tests" > dist.lst
  56. # Unzip the dist tar file.
  57. DIST=`ls *.tar.gz`
  58. tar -xf $DIST
  59. cd ${DIST//.tar.gz}
  60. # Check if every file exists in the dist tar file.
  61. FILES_MISSING=""
  62. for FILE in $(<../dist.lst); do
  63. [ -f "$FILE" ] || {
  64. echo "$FILE is not found!"
  65. FILES_MISSING="$FILE $FILES_MISSING"
  66. }
  67. done
  68. cd ..
  69. if [ ! -z "$FILES_MISSING" ]; then
  70. echo "Missing files in EXTRA_DIST: $FILES_MISSING"
  71. exit 1
  72. fi
  73. # Do the regular dist-check for C++.
  74. make distcheck -j4
  75. }
  76. build_csharp() {
  77. # Required for conformance tests and to regenerate protos.
  78. internal_build_cpp
  79. NUGET=/usr/local/bin/nuget.exe
  80. # Perform "dotnet new" once to get the setup preprocessing out of the
  81. # way. That spews a lot of output (including backspaces) into logs
  82. # otherwise, and can cause problems. It doesn't matter if this step
  83. # is performed multiple times; it's cheap after the first time anyway.
  84. # (It also doesn't matter if it's unnecessary, which it will be on some
  85. # systems. It's necessary on Jenkins in order to avoid unprintable
  86. # characters appearing in the JUnit output.)
  87. mkdir dotnettmp
  88. (cd dotnettmp; dotnet new > /dev/null)
  89. rm -rf dotnettmp
  90. # Check that the protos haven't broken C# codegen.
  91. # TODO(jonskeet): Fail if regenerating creates any changes.
  92. csharp/generate_protos.sh
  93. csharp/buildall.sh
  94. cd conformance && make test_csharp && cd ..
  95. # Run csharp compatibility test between 3.0.0 and the current version.
  96. csharp/compatibility_tests/v3.0.0/test.sh 3.0.0
  97. }
  98. build_golang() {
  99. # Go build needs `protoc`.
  100. internal_build_cpp
  101. # Add protoc to the path so that the examples build finds it.
  102. export PATH="`pwd`/src:$PATH"
  103. export GOPATH="$HOME/gocode"
  104. mkdir -p "$GOPATH/src/github.com/protocolbuffers"
  105. rm -f "$GOPATH/src/github.com/protocolbuffers/protobuf"
  106. ln -s "`pwd`" "$GOPATH/src/github.com/protocolbuffers/protobuf"
  107. export PATH="$GOPATH/bin:$PATH"
  108. go get github.com/golang/protobuf/protoc-gen-go
  109. cd examples && PROTO_PATH="-I../src -I." make gotest && cd ..
  110. }
  111. use_java() {
  112. version=$1
  113. case "$version" in
  114. jdk7)
  115. export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH
  116. export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
  117. ;;
  118. oracle7)
  119. export PATH=/usr/lib/jvm/java-7-oracle/bin:$PATH
  120. export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
  121. ;;
  122. esac
  123. MAVEN_LOCAL_REPOSITORY=/var/maven_local_repository
  124. MVN="$MVN -e -X -Dhttps.protocols=TLSv1.2 -Dmaven.repo.local=$MAVEN_LOCAL_REPOSITORY"
  125. which java
  126. java -version
  127. $MVN -version
  128. }
  129. # --batch-mode supresses download progress output that spams the logs.
  130. MVN="mvn --batch-mode"
  131. build_java() {
  132. version=$1
  133. dir=java_$version
  134. # Java build needs `protoc`.
  135. internal_build_cpp
  136. cp -r java $dir
  137. cd $dir && $MVN clean && $MVN test
  138. cd ../..
  139. }
  140. # The conformance tests are hard-coded to work with the $ROOT/java directory.
  141. # So this can't run in parallel with two different sets of tests.
  142. build_java_with_conformance_tests() {
  143. # Java build needs `protoc`.
  144. internal_build_cpp
  145. cd java && $MVN test && $MVN install
  146. cd util && $MVN package assembly:single
  147. cd ../..
  148. cd conformance && make test_java && cd ..
  149. }
  150. build_java_jdk7() {
  151. use_java jdk7
  152. build_java_with_conformance_tests
  153. }
  154. build_java_oracle7() {
  155. use_java oracle7
  156. build_java oracle7
  157. }
  158. build_java_compatibility() {
  159. use_java jdk7
  160. internal_build_cpp
  161. # Use the unit-tests extraced from 2.5.0 to test the compatibilty between
  162. # 3.0.0-beta-4 and the current version.
  163. cd java/compatibility_tests/v2.5.0
  164. ./test.sh 3.0.0-beta-4
  165. }
  166. build_objectivec_ios() {
  167. # Reused the build script that takes care of configuring and ensuring things
  168. # are up to date. The OS X test runs the objc conformance test, so skip it
  169. # here.
  170. objectivec/DevTools/full_mac_build.sh \
  171. --core-only --skip-xcode-osx --skip-xcode-tvos --skip-objc-conformance "$@"
  172. }
  173. build_objectivec_ios_debug() {
  174. build_objectivec_ios --skip-xcode-release
  175. }
  176. build_objectivec_ios_release() {
  177. build_objectivec_ios --skip-xcode-debug
  178. }
  179. build_objectivec_osx() {
  180. # Reused the build script that takes care of configuring and ensuring things
  181. # are up to date.
  182. objectivec/DevTools/full_mac_build.sh \
  183. --core-only --skip-xcode-ios --skip-xcode-tvos
  184. }
  185. build_objectivec_tvos() {
  186. # Reused the build script that takes care of configuring and ensuring things
  187. # are up to date. The OS X test runs the objc conformance test, so skip it
  188. # here.
  189. objectivec/DevTools/full_mac_build.sh \
  190. --core-only --skip-xcode-ios --skip-xcode-osx --skip-objc-conformance "$@"
  191. }
  192. build_objectivec_tvos_debug() {
  193. build_objectivec_tvos --skip-xcode-release
  194. }
  195. build_objectivec_tvos_release() {
  196. build_objectivec_tvos --skip-xcode-debug
  197. }
  198. build_objectivec_cocoapods_integration() {
  199. # Update pod to the latest version.
  200. gem install cocoapods --no_document
  201. objectivec/Tests/CocoaPods/run_tests.sh
  202. }
  203. build_python() {
  204. internal_build_cpp
  205. cd python
  206. if [ $(uname -s) == "Linux" ]; then
  207. envlist=py\{27,33,34,35,36\}-python
  208. else
  209. envlist=py27-python
  210. fi
  211. tox -e $envlist
  212. cd ..
  213. }
  214. build_python_version() {
  215. internal_build_cpp
  216. cd python
  217. envlist=$1
  218. tox -e $envlist
  219. cd ..
  220. }
  221. build_python27() {
  222. build_python_version py27-python
  223. }
  224. build_python33() {
  225. build_python_version py33-python
  226. }
  227. build_python34() {
  228. build_python_version py34-python
  229. }
  230. build_python35() {
  231. build_python_version py35-python
  232. }
  233. build_python36() {
  234. build_python_version py36-python
  235. }
  236. build_python37() {
  237. build_python_version py37-python
  238. }
  239. build_python_cpp() {
  240. internal_build_cpp
  241. export LD_LIBRARY_PATH=../src/.libs # for Linux
  242. export DYLD_LIBRARY_PATH=../src/.libs # for OS X
  243. cd python
  244. if [ $(uname -s) == "Linux" ]; then
  245. envlist=py\{27,33,34,35,36\}-cpp
  246. else
  247. envlist=py27-cpp
  248. fi
  249. tox -e $envlist
  250. cd ..
  251. }
  252. build_python_cpp_version() {
  253. internal_build_cpp
  254. export LD_LIBRARY_PATH=../src/.libs # for Linux
  255. export DYLD_LIBRARY_PATH=../src/.libs # for OS X
  256. cd python
  257. envlist=$1
  258. tox -e $envlist
  259. cd ..
  260. }
  261. build_python27_cpp() {
  262. build_python_cpp_version py27-cpp
  263. }
  264. build_python33_cpp() {
  265. build_python_cpp_version py33-cpp
  266. }
  267. build_python34_cpp() {
  268. build_python_cpp_version py34-cpp
  269. }
  270. build_python35_cpp() {
  271. build_python_cpp_version py35-cpp
  272. }
  273. build_python36_cpp() {
  274. build_python_cpp_version py36-cpp
  275. }
  276. build_python37_cpp() {
  277. build_python_cpp_version py37-cpp
  278. }
  279. build_python_compatibility() {
  280. internal_build_cpp
  281. # Use the unit-tests extraced from 2.5.0 to test the compatibilty.
  282. cd python/compatibility_tests/v2.5.0
  283. # Test between 2.5.0 and the current version.
  284. ./test.sh 2.5.0
  285. # Test between 3.0.0-beta-1 and the current version.
  286. ./test.sh 3.0.0-beta-1
  287. }
  288. build_ruby23() {
  289. internal_build_cpp # For conformance tests.
  290. cd ruby && bash travis-test.sh ruby-2.3.8 && cd ..
  291. }
  292. build_ruby24() {
  293. internal_build_cpp # For conformance tests.
  294. cd ruby && bash travis-test.sh ruby-2.4 && cd ..
  295. }
  296. build_ruby25() {
  297. internal_build_cpp # For conformance tests.
  298. cd ruby && bash travis-test.sh ruby-2.5.1 && cd ..
  299. }
  300. build_ruby26() {
  301. internal_build_cpp # For conformance tests.
  302. cd ruby && bash travis-test.sh ruby-2.6.0 && cd ..
  303. }
  304. build_javascript() {
  305. internal_build_cpp
  306. cd js && npm install && npm test && cd ..
  307. cd conformance && make test_nodejs && cd ..
  308. }
  309. generate_php_test_proto() {
  310. internal_build_cpp
  311. pushd php/tests
  312. # Generate test file
  313. rm -rf generated
  314. mkdir generated
  315. ../../src/protoc --php_out=generated \
  316. -I../../src -I. \
  317. proto/empty/echo.proto \
  318. proto/test.proto \
  319. proto/test_include.proto \
  320. proto/test_no_namespace.proto \
  321. proto/test_prefix.proto \
  322. proto/test_php_namespace.proto \
  323. proto/test_empty_php_namespace.proto \
  324. proto/test_reserved_enum_lower.proto \
  325. proto/test_reserved_enum_upper.proto \
  326. proto/test_reserved_enum_value_lower.proto \
  327. proto/test_reserved_enum_value_upper.proto \
  328. proto/test_reserved_message_lower.proto \
  329. proto/test_reserved_message_upper.proto \
  330. proto/test_service.proto \
  331. proto/test_service_namespace.proto \
  332. proto/test_wrapper_type_setters.proto \
  333. proto/test_descriptors.proto
  334. pushd ../../src
  335. ./protoc --php_out=../php/tests/generated -I../php/tests -I. \
  336. ../php/tests/proto/test_import_descriptor_proto.proto
  337. popd
  338. popd
  339. }
  340. use_php() {
  341. VERSION=$1
  342. export PATH=/usr/local/php-${VERSION}/bin:$PATH
  343. export CPLUS_INCLUDE_PATH=/usr/local/php-${VERSION}/include/php/main:/usr/local/php-${VERSION}/include/php/:$CPLUS_INCLUDE_PATH
  344. export C_INCLUDE_PATH=/usr/local/php-${VERSION}/include/php/main:/usr/local/php-${VERSION}/include/php/:$C_INCLUDE_PATH
  345. generate_php_test_proto
  346. }
  347. use_php_zts() {
  348. VERSION=$1
  349. export PATH=/usr/local/php-${VERSION}-zts/bin:$PATH
  350. export CPLUS_INCLUDE_PATH=/usr/local/php-${VERSION}-zts/include/php/main:/usr/local/php-${VERSION}-zts/include/php/:$CPLUS_INCLUDE_PATH
  351. export C_INCLUDE_PATH=/usr/local/php-${VERSION}-zts/include/php/main:/usr/local/php-${VERSION}-zts/include/php/:$C_INCLUDE_PATH
  352. generate_php_test_proto
  353. }
  354. use_php_bc() {
  355. VERSION=$1
  356. export PATH=/usr/local/php-${VERSION}-bc/bin:$PATH
  357. export CPLUS_INCLUDE_PATH=/usr/local/php-${VERSION}-bc/include/php/main:/usr/local/php-${VERSION}-bc/include/php/:$CPLUS_INCLUDE_PATH
  358. export C_INCLUDE_PATH=/usr/local/php-${VERSION}-bc/include/php/main:/usr/local/php-${VERSION}-bc/include/php/:$C_INCLUDE_PATH
  359. generate_php_test_proto
  360. }
  361. build_php5.5() {
  362. use_php 5.5
  363. pushd php
  364. rm -rf vendor
  365. composer update
  366. ./vendor/bin/phpunit
  367. popd
  368. pushd conformance
  369. make test_php
  370. popd
  371. }
  372. build_php5.5_c() {
  373. use_php 5.5
  374. pushd php/tests
  375. /bin/bash ./test.sh 5.5
  376. popd
  377. # TODO(teboring): Add it back
  378. # pushd conformance
  379. # make test_php_c
  380. # popd
  381. }
  382. build_php5.5_mixed() {
  383. use_php 5.5
  384. pushd php
  385. rm -rf vendor
  386. composer update
  387. /bin/bash ./tests/compile_extension.sh ./ext/google/protobuf
  388. php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
  389. popd
  390. }
  391. build_php5.5_zts_c() {
  392. use_php_zts 5.5
  393. cd php/tests && /bin/bash ./test.sh 5.5-zts && cd ../..
  394. # TODO(teboring): Add it back
  395. # pushd conformance
  396. # make test_php_zts_c
  397. # popd
  398. }
  399. build_php5.6() {
  400. use_php 5.6
  401. pushd php
  402. rm -rf vendor
  403. composer update
  404. ./vendor/bin/phpunit
  405. popd
  406. pushd conformance
  407. make test_php
  408. popd
  409. }
  410. build_php5.6_c() {
  411. use_php 5.6
  412. cd php/tests && /bin/bash ./test.sh 5.6 && cd ../..
  413. # TODO(teboring): Add it back
  414. # pushd conformance
  415. # make test_php_c
  416. # popd
  417. }
  418. build_php5.6_mixed() {
  419. use_php 5.6
  420. pushd php
  421. rm -rf vendor
  422. composer update
  423. /bin/bash ./tests/compile_extension.sh ./ext/google/protobuf
  424. php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
  425. popd
  426. }
  427. build_php5.6_zts_c() {
  428. use_php_zts 5.6
  429. cd php/tests && /bin/bash ./test.sh 5.6-zts && cd ../..
  430. # TODO(teboring): Add it back
  431. # pushd conformance
  432. # make test_php_zts_c
  433. # popd
  434. }
  435. build_php5.6_mac() {
  436. generate_php_test_proto
  437. # Install PHP
  438. curl -s https://php-osx.liip.ch/install.sh | bash -s 5.6
  439. PHP_FOLDER=`find /usr/local -type d -name "php5-5.6*"` # The folder name may change upon time
  440. export PATH="$PHP_FOLDER/bin:$PATH"
  441. # Install phpunit
  442. curl https://phar.phpunit.de/phpunit-5.6.8.phar -L -o phpunit.phar
  443. chmod +x phpunit.phar
  444. sudo mv phpunit.phar /usr/local/bin/phpunit
  445. # Install valgrind
  446. echo "#! /bin/bash" > valgrind
  447. chmod ug+x valgrind
  448. sudo mv valgrind /usr/local/bin/valgrind
  449. # Test
  450. cd php/tests && /bin/bash ./test.sh && cd ../..
  451. # TODO(teboring): Add it back
  452. # pushd conformance
  453. # make test_php_c
  454. # popd
  455. }
  456. build_php7.0() {
  457. use_php 7.0
  458. pushd php
  459. rm -rf vendor
  460. composer update
  461. ./vendor/bin/phpunit
  462. popd
  463. pushd conformance
  464. make test_php
  465. popd
  466. }
  467. build_php7.0_c() {
  468. use_php 7.0
  469. cd php/tests && /bin/bash ./test.sh 7.0 && cd ../..
  470. # TODO(teboring): Add it back
  471. # pushd conformance
  472. # make test_php_c
  473. # popd
  474. }
  475. build_php7.0_mixed() {
  476. use_php 7.0
  477. pushd php
  478. rm -rf vendor
  479. composer update
  480. /bin/bash ./tests/compile_extension.sh ./ext/google/protobuf
  481. php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
  482. popd
  483. }
  484. build_php7.0_zts_c() {
  485. use_php_zts 7.0
  486. cd php/tests && /bin/bash ./test.sh 7.0-zts && cd ../..
  487. # TODO(teboring): Add it back.
  488. # pushd conformance
  489. # make test_php_zts_c
  490. # popd
  491. }
  492. build_php7.0_mac() {
  493. generate_php_test_proto
  494. # Install PHP
  495. curl -s https://php-osx.liip.ch/install.sh | bash -s 7.0
  496. PHP_FOLDER=`find /usr/local -type d -name "php7-7.0*"` # The folder name may change upon time
  497. export PATH="$PHP_FOLDER/bin:$PATH"
  498. # Install phpunit
  499. curl https://phar.phpunit.de/phpunit-5.6.0.phar -L -o phpunit.phar
  500. chmod +x phpunit.phar
  501. sudo mv phpunit.phar /usr/local/bin/phpunit
  502. # Install valgrind
  503. echo "#! /bin/bash" > valgrind
  504. chmod ug+x valgrind
  505. sudo mv valgrind /usr/local/bin/valgrind
  506. # Test
  507. cd php/tests && /bin/bash ./test.sh && cd ../..
  508. # TODO(teboring): Add it back
  509. # pushd conformance
  510. # make test_php_c
  511. # popd
  512. }
  513. build_php_compatibility() {
  514. internal_build_cpp
  515. php/tests/compatibility_test.sh
  516. }
  517. build_php7.1() {
  518. use_php 7.1
  519. pushd php
  520. rm -rf vendor
  521. composer update
  522. ./vendor/bin/phpunit
  523. popd
  524. pushd conformance
  525. make test_php
  526. popd
  527. }
  528. build_php7.1_c() {
  529. ENABLE_CONFORMANCE_TEST=$1
  530. use_php 7.1
  531. cd php/tests && /bin/bash ./test.sh 7.1 && cd ../..
  532. if [ "$ENABLE_CONFORMANCE_TEST" = "true" ]
  533. then
  534. pushd conformance
  535. make test_php_c
  536. popd
  537. fi
  538. }
  539. build_php7.1_mixed() {
  540. use_php 7.1
  541. pushd php
  542. rm -rf vendor
  543. composer update
  544. /bin/bash ./tests/compile_extension.sh ./ext/google/protobuf
  545. php -dextension=./ext/google/protobuf/modules/protobuf.so ./vendor/bin/phpunit
  546. popd
  547. }
  548. build_php7.1_zts_c() {
  549. use_php_zts 7.1
  550. cd php/tests && /bin/bash ./test.sh 7.1-zts && cd ../..
  551. pushd conformance
  552. # make test_php_c
  553. popd
  554. }
  555. build_php_all_32() {
  556. build_php5.5
  557. build_php5.6
  558. build_php7.0
  559. build_php7.1
  560. build_php5.5_c
  561. build_php5.6_c
  562. build_php7.0_c
  563. build_php7.1_c $1
  564. build_php5.5_mixed
  565. build_php5.6_mixed
  566. build_php7.0_mixed
  567. build_php7.1_mixed
  568. build_php5.5_zts_c
  569. build_php5.6_zts_c
  570. build_php7.0_zts_c
  571. build_php7.1_zts_c
  572. }
  573. build_php_all() {
  574. build_php_all_32 true
  575. build_php_compatibility
  576. }
  577. build_benchmark() {
  578. use_php 7.2
  579. cd kokoro/linux/benchmark && ./run.sh
  580. }
  581. # -------- main --------
  582. if [ "$#" -ne 1 ]; then
  583. echo "
  584. Usage: $0 { cpp |
  585. cpp_distcheck |
  586. csharp |
  587. java_jdk7 |
  588. java_oracle7 |
  589. java_compatibility |
  590. objectivec_ios |
  591. objectivec_ios_debug |
  592. objectivec_ios_release |
  593. objectivec_osx |
  594. objectivec_tvos |
  595. objectivec_tvos_debug |
  596. objectivec_tvos_release |
  597. objectivec_cocoapods_integration |
  598. python |
  599. python_cpp |
  600. python_compatibility |
  601. ruby23 |
  602. ruby24 |
  603. ruby25 |
  604. ruby26 |
  605. jruby |
  606. ruby_all |
  607. php5.5 |
  608. php5.5_c |
  609. php5.6 |
  610. php5.6_c |
  611. php7.0 |
  612. php7.0_c |
  613. php_compatibility |
  614. php7.1 |
  615. php7.1_c |
  616. php_all |
  617. benchmark)
  618. "
  619. exit 1
  620. fi
  621. set -e # exit immediately on error
  622. set -x # display all commands
  623. cd $(dirname $0)
  624. eval "build_$1"