tests.sh 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. #!/bin/bash
  2. #
  3. # Build and runs tests for the protobuf project. The tests as written here are
  4. # used by both Jenkins and Travis, though some specialized logic is required to
  5. # handle the differences between them.
  6. on_travis() {
  7. if [ "$TRAVIS" == "true" ]; then
  8. "$@"
  9. fi
  10. }
  11. # For when some other test needs the C++ main build, including protoc and
  12. # libprotobuf.
  13. internal_build_cpp() {
  14. if [ -f src/protoc ]; then
  15. # Already built.
  16. return
  17. fi
  18. if [[ $(uname -s) == "Linux" && "$TRAVIS" == "true" ]]; then
  19. # Install GCC 4.8 to replace the default GCC 4.6. We need 4.8 for more
  20. # decent C++ 11 support in order to compile conformance tests.
  21. sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  22. sudo apt-get update -qq
  23. sudo apt-get install -qq g++-4.8
  24. export CXX="g++-4.8" CC="gcc-4.8"
  25. fi
  26. ./autogen.sh
  27. ./configure CXXFLAGS="-fPIC" # -fPIC is needed for python cpp test.
  28. # See python/setup.py for more details
  29. make -j2
  30. }
  31. build_cpp() {
  32. internal_build_cpp
  33. make check -j2
  34. cd conformance && make test_cpp && cd ..
  35. # The benchmark code depends on cmake, so test if it is installed before
  36. # trying to do the build.
  37. # NOTE: The travis macOS images say they have cmake, but the xcode8.1 image
  38. # appears to be missing it: https://github.com/travis-ci/travis-ci/issues/6996
  39. if [[ $(type cmake 2>/dev/null) ]]; then
  40. # Verify benchmarking code can build successfully.
  41. git submodule init
  42. git submodule update
  43. cd third_party/benchmark && cmake -DCMAKE_BUILD_TYPE=Release && make && cd ../..
  44. cd benchmarks && make && ./generate-datasets && cd ..
  45. else
  46. echo ""
  47. echo "WARNING: Skipping validation of the bench marking code, cmake isn't installed."
  48. echo ""
  49. fi
  50. }
  51. build_cpp_distcheck() {
  52. ./autogen.sh
  53. ./configure
  54. make dist
  55. # List all files that should be included in the distribution package.
  56. git ls-files | grep "^\(java\|python\|objectivec\|csharp\|js\|ruby\|php\|cmake\|examples\)" |\
  57. grep -v ".gitignore" | grep -v "java/compatibility_tests" |\
  58. grep -v "cmake/protobuf.*\.pc\.cmake" |\
  59. grep -v "python/compatibility_tests" | grep -v "csharp/compatibility_tests" > dist.lst
  60. # Unzip the dist tar file.
  61. DIST=`ls *.tar.gz`
  62. tar -xf $DIST
  63. cd ${DIST//.tar.gz}
  64. # Check if every file exists in the dist tar file.
  65. FILES_MISSING=""
  66. for FILE in $(<../dist.lst); do
  67. if ! file $FILE &>/dev/null; then
  68. echo "$FILE is not found!"
  69. FILES_MISSING="$FILE $FILES_MISSING"
  70. fi
  71. done
  72. cd ..
  73. if [ ! -z "$FILES_MISSING" ]; then
  74. echo "Missing files in EXTRA_DIST: $FILES_MISSING"
  75. exit 1
  76. fi
  77. # Do the regular dist-check for C++.
  78. make distcheck -j2
  79. }
  80. build_csharp() {
  81. # Just for the conformance tests. We don't currently
  82. # need to really build protoc, but it's simplest to keep with the
  83. # conventions of the other builds.
  84. internal_build_cpp
  85. NUGET=/usr/local/bin/nuget.exe
  86. # Perform "dotnet new" once to get the setup preprocessing out of the
  87. # way. That spews a lot of output (including backspaces) into logs
  88. # otherwise, and can cause problems. It doesn't matter if this step
  89. # is performed multiple times; it's cheap after the first time anyway.
  90. # (It also doesn't matter if it's unnecessary, which it will be on some
  91. # systems. It's necessary on Jenkins in order to avoid unprintable
  92. # characters appearing in the JUnit output.)
  93. mkdir dotnettmp
  94. (cd dotnettmp; dotnet new > /dev/null)
  95. rm -rf dotnettmp
  96. csharp/buildall.sh
  97. cd conformance && make test_csharp && cd ..
  98. # Run csharp compatibility test between 3.0.0 and the current version.
  99. csharp/compatibility_tests/v3.0.0/test.sh 3.0.0
  100. }
  101. build_golang() {
  102. # Go build needs `protoc`.
  103. internal_build_cpp
  104. # Add protoc to the path so that the examples build finds it.
  105. export PATH="`pwd`/src:$PATH"
  106. # Install Go and the Go protobuf compiler plugin.
  107. on_travis sudo apt-get update -qq
  108. on_travis sudo apt-get install -qq golang
  109. export GOPATH="$HOME/gocode"
  110. mkdir -p "$GOPATH/src/github.com/google"
  111. rm -f "$GOPATH/src/github.com/google/protobuf"
  112. ln -s "`pwd`" "$GOPATH/src/github.com/google/protobuf"
  113. export PATH="$GOPATH/bin:$PATH"
  114. go get github.com/golang/protobuf/protoc-gen-go
  115. cd examples && make gotest && cd ..
  116. }
  117. use_java() {
  118. version=$1
  119. case "$version" in
  120. jdk7)
  121. on_travis sudo apt-get install openjdk-7-jdk
  122. export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH
  123. export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
  124. ;;
  125. oracle7)
  126. if [ "$TRAVIS" == "true" ]; then
  127. sudo apt-get install python-software-properties # for apt-add-repository
  128. echo "oracle-java7-installer shared/accepted-oracle-license-v1-1 select true" | \
  129. sudo debconf-set-selections
  130. yes | sudo apt-add-repository ppa:webupd8team/java
  131. yes | sudo apt-get install oracle-java7-installer
  132. fi;
  133. export PATH=/usr/lib/jvm/java-7-oracle/bin:$PATH
  134. export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
  135. ;;
  136. esac
  137. if [ "$TRAVIS" != "true" ]; then
  138. MAVEN_LOCAL_REPOSITORY=/var/maven_local_repository
  139. MVN="$MVN -e -X --offline -Dmaven.repo.local=$MAVEN_LOCAL_REPOSITORY"
  140. fi;
  141. which java
  142. java -version
  143. $MVN -version
  144. }
  145. # --batch-mode supresses download progress output that spams the logs.
  146. MVN="mvn --batch-mode"
  147. build_java() {
  148. version=$1
  149. dir=java_$version
  150. # Java build needs `protoc`.
  151. internal_build_cpp
  152. cp -r java $dir
  153. cd $dir && $MVN clean && $MVN test
  154. cd ../..
  155. }
  156. # The conformance tests are hard-coded to work with the $ROOT/java directory.
  157. # So this can't run in parallel with two different sets of tests.
  158. build_java_with_conformance_tests() {
  159. # Java build needs `protoc`.
  160. internal_build_cpp
  161. cd java && $MVN test && $MVN install
  162. cd util && $MVN package assembly:single
  163. cd ../..
  164. cd conformance && make test_java && cd ..
  165. }
  166. build_javanano() {
  167. # Java build needs `protoc`.
  168. internal_build_cpp
  169. cd javanano && $MVN test && cd ..
  170. }
  171. build_java_jdk7() {
  172. use_java jdk7
  173. build_java_with_conformance_tests
  174. }
  175. build_java_oracle7() {
  176. use_java oracle7
  177. build_java oracle7
  178. }
  179. build_java_compatibility() {
  180. use_java jdk7
  181. internal_build_cpp
  182. # Use the unit-tests extraced from 2.5.0 to test the compatibilty between
  183. # 3.0.0-beta-4 and the current version.
  184. cd java/compatibility_tests/v2.5.0
  185. ./test.sh 3.0.0-beta-4
  186. }
  187. build_javanano_jdk7() {
  188. use_java jdk7
  189. build_javanano
  190. }
  191. build_javanano_oracle7() {
  192. use_java oracle7
  193. build_javanano
  194. }
  195. internal_install_python_deps() {
  196. if [ "$TRAVIS" != "true" ]; then
  197. return;
  198. fi
  199. # Install tox (OS X doesn't have pip).
  200. if [ $(uname -s) == "Darwin" ]; then
  201. sudo easy_install tox
  202. else
  203. sudo pip install tox
  204. fi
  205. # Only install Python2.6/3.x on Linux.
  206. if [ $(uname -s) == "Linux" ]; then
  207. sudo apt-get install -y python-software-properties # for apt-add-repository
  208. sudo apt-add-repository -y ppa:fkrull/deadsnakes
  209. sudo apt-get update -qq
  210. sudo apt-get install -y python2.6 python2.6-dev
  211. sudo apt-get install -y python3.3 python3.3-dev
  212. sudo apt-get install -y python3.4 python3.4-dev
  213. fi
  214. }
  215. build_objectivec_ios() {
  216. # Reused the build script that takes care of configuring and ensuring things
  217. # are up to date. The OS X test runs the objc conformance test, so skip it
  218. # here.
  219. # Note: travis has xctool installed, and we've looked at using it in the past
  220. # but it has ended up proving unreliable (bugs), an they are removing build
  221. # support in favor of xcbuild (or just xcodebuild).
  222. objectivec/DevTools/full_mac_build.sh \
  223. --core-only --skip-xcode-osx --skip-objc-conformance "$@"
  224. }
  225. build_objectivec_ios_debug() {
  226. build_objectivec_ios --skip-xcode-release
  227. }
  228. build_objectivec_ios_release() {
  229. build_objectivec_ios --skip-xcode-debug
  230. }
  231. build_objectivec_osx() {
  232. # Reused the build script that takes care of configuring and ensuring things
  233. # are up to date.
  234. objectivec/DevTools/full_mac_build.sh \
  235. --core-only --skip-xcode-ios
  236. }
  237. build_objectivec_cocoapods_integration() {
  238. # Update pod to the latest version.
  239. gem install cocoapods --no-ri --no-rdoc
  240. objectivec/Tests/CocoaPods/run_tests.sh
  241. }
  242. build_python() {
  243. internal_build_cpp
  244. internal_install_python_deps
  245. cd python
  246. # Only test Python 2.6/3.x on Linux
  247. if [ $(uname -s) == "Linux" ]; then
  248. envlist=py\{26,27,33,34\}-python
  249. else
  250. envlist=py27-python
  251. fi
  252. tox -e $envlist
  253. cd ..
  254. }
  255. build_python_cpp() {
  256. internal_build_cpp
  257. internal_install_python_deps
  258. export LD_LIBRARY_PATH=../src/.libs # for Linux
  259. export DYLD_LIBRARY_PATH=../src/.libs # for OS X
  260. cd python
  261. # Only test Python 2.6/3.x on Linux
  262. if [ $(uname -s) == "Linux" ]; then
  263. # py26 is currently disabled due to json_format
  264. envlist=py\{27,33,34\}-cpp
  265. else
  266. envlist=py27-cpp
  267. fi
  268. tox -e $envlist
  269. cd ..
  270. }
  271. build_python_compatibility() {
  272. internal_build_cpp
  273. # Use the unit-tests extraced from 2.5.0 to test the compatibilty.
  274. cd python/compatibility_tests/v2.5.0
  275. # Test between 2.5.0 and the current version.
  276. ./test.sh 2.5.0
  277. # Test between 3.0.0-beta-1 and the current version.
  278. ./test.sh 3.0.0-beta-1
  279. }
  280. build_ruby21() {
  281. internal_build_cpp # For conformance tests.
  282. cd ruby && bash travis-test.sh ruby-2.1 && cd ..
  283. }
  284. build_ruby22() {
  285. internal_build_cpp # For conformance tests.
  286. cd ruby && bash travis-test.sh ruby-2.2 && cd ..
  287. }
  288. build_jruby() {
  289. internal_build_cpp # For conformance tests.
  290. # TODO(xiaofeng): Upgrade to jruby-9.x. There are some broken jests to be
  291. # fixed.
  292. cd ruby && bash travis-test.sh jruby-1.7 && cd ..
  293. }
  294. build_ruby_all() {
  295. build_ruby21
  296. build_ruby22
  297. # TODO(teboring): Disable jruby test temperarily for it randomly fails.
  298. # https://grpc-testing.appspot.com/job/protobuf_pull_request/735/consoleFull.
  299. # build_jruby
  300. }
  301. build_javascript() {
  302. internal_build_cpp
  303. cd js && npm install && npm test && cd ..
  304. cd conformance && make test_nodejs && cd ..
  305. }
  306. generate_php_test_proto() {
  307. internal_build_cpp
  308. pushd php/tests
  309. # Generate test file
  310. rm -rf generated
  311. mkdir generated
  312. ../../src/protoc --php_out=generated proto/test.proto proto/test_include.proto proto/test_no_namespace.proto proto/test_prefix.proto proto/test_php_namespace.proto proto/test_empty_php_namespace.proto proto/test_service.proto proto/test_service_namespace.proto
  313. pushd ../../src
  314. ./protoc --php_out=../php/tests/generated google/protobuf/empty.proto
  315. ./protoc --php_out=../php/tests/generated -I../php/tests -I. ../php/tests/proto/test_import_descriptor_proto.proto
  316. popd
  317. popd
  318. }
  319. use_php() {
  320. VERSION=$1
  321. PHP=`which php`
  322. PHP_CONFIG=`which php-config`
  323. PHPIZE=`which phpize`
  324. ln -sfn "/usr/local/php-${VERSION}/bin/php" $PHP
  325. ln -sfn "/usr/local/php-${VERSION}/bin/php-config" $PHP_CONFIG
  326. ln -sfn "/usr/local/php-${VERSION}/bin/phpize" $PHPIZE
  327. generate_php_test_proto
  328. }
  329. use_php_zts() {
  330. VERSION=$1
  331. PHP=`which php`
  332. PHP_CONFIG=`which php-config`
  333. PHPIZE=`which phpize`
  334. ln -sfn "/usr/local/php-${VERSION}-zts/bin/php" $PHP
  335. ln -sfn "/usr/local/php-${VERSION}-zts/bin/php-config" $PHP_CONFIG
  336. ln -sfn "/usr/local/php-${VERSION}-zts/bin/phpize" $PHPIZE
  337. generate_php_test_proto
  338. }
  339. use_php_bc() {
  340. VERSION=$1
  341. PHP=`which php`
  342. PHP_CONFIG=`which php-config`
  343. PHPIZE=`which phpize`
  344. ln -sfn "/usr/local/php-${VERSION}-bc/bin/php" $PHP
  345. ln -sfn "/usr/local/php-${VERSION}-bc/bin/php-config" $PHP_CONFIG
  346. ln -sfn "/usr/local/php-${VERSION}-bc/bin/phpize" $PHPIZE
  347. generate_php_test_proto
  348. }
  349. build_php5.5() {
  350. use_php 5.5
  351. pushd php
  352. rm -rf vendor
  353. cp -r /usr/local/vendor-5.5 vendor
  354. wget https://phar.phpunit.de/phpunit-4.8.0.phar -O /usr/bin/phpunit
  355. phpunit
  356. popd
  357. pushd conformance
  358. make test_php
  359. popd
  360. }
  361. build_php5.5_c() {
  362. use_php 5.5
  363. wget https://phar.phpunit.de/phpunit-4.8.0.phar -O /usr/bin/phpunit
  364. pushd php/tests
  365. /bin/bash ./test.sh
  366. popd
  367. # TODO(teboring): Add it back
  368. # pushd conformance
  369. # make test_php_c
  370. # popd
  371. }
  372. build_php5.5_zts_c() {
  373. use_php_zts 5.5
  374. wget https://phar.phpunit.de/phpunit-4.8.0.phar -O /usr/bin/phpunit
  375. cd php/tests && /bin/bash ./test.sh && cd ../..
  376. # TODO(teboring): Add it back
  377. # pushd conformance
  378. # make test_php_zts_c
  379. # popd
  380. }
  381. build_php5.6() {
  382. use_php 5.6
  383. pushd php
  384. rm -rf vendor
  385. cp -r /usr/local/vendor-5.6 vendor
  386. wget https://phar.phpunit.de/phpunit-5.7.0.phar -O /usr/bin/phpunit
  387. phpunit
  388. popd
  389. pushd conformance
  390. make test_php
  391. popd
  392. }
  393. build_php5.6_c() {
  394. use_php 5.6
  395. wget https://phar.phpunit.de/phpunit-5.7.0.phar -O /usr/bin/phpunit
  396. cd php/tests && /bin/bash ./test.sh && cd ../..
  397. # TODO(teboring): Add it back
  398. # pushd conformance
  399. # make test_php_c
  400. # popd
  401. }
  402. build_php5.6_zts_c() {
  403. use_php_zts 5.6
  404. wget https://phar.phpunit.de/phpunit-5.7.0.phar -O /usr/bin/phpunit
  405. cd php/tests && /bin/bash ./test.sh && cd ../..
  406. # TODO(teboring): Add it back
  407. # pushd conformance
  408. # make test_php_zts_c
  409. # popd
  410. }
  411. build_php5.6_mac() {
  412. generate_php_test_proto
  413. # Install PHP
  414. curl -s https://php-osx.liip.ch/install.sh | bash -s 5.6
  415. PHP_FOLDER=`find /usr/local -type d -name "php5-5.6*"` # The folder name may change upon time
  416. export PATH="$PHP_FOLDER/bin:$PATH"
  417. # Install phpunit
  418. curl https://phar.phpunit.de/phpunit-5.6.10.phar -L -o phpunit.phar
  419. chmod +x phpunit.phar
  420. sudo mv phpunit.phar /usr/local/bin/phpunit
  421. # Install valgrind
  422. echo "#! /bin/bash" > valgrind
  423. chmod ug+x valgrind
  424. sudo mv valgrind /usr/local/bin/valgrind
  425. # Test
  426. cd php/tests && /bin/bash ./test.sh && cd ../..
  427. # TODO(teboring): Add it back
  428. # pushd conformance
  429. # make test_php_c
  430. # popd
  431. }
  432. build_php7.0() {
  433. use_php 7.0
  434. pushd php
  435. rm -rf vendor
  436. cp -r /usr/local/vendor-7.0 vendor
  437. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  438. phpunit
  439. popd
  440. pushd conformance
  441. make test_php
  442. popd
  443. }
  444. build_php7.0_c() {
  445. use_php 7.0
  446. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  447. cd php/tests && /bin/bash ./test.sh && cd ../..
  448. # TODO(teboring): Add it back
  449. # pushd conformance
  450. # make test_php_c
  451. # popd
  452. }
  453. build_php7.0_zts_c() {
  454. use_php_zts 7.0
  455. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  456. cd php/tests && /bin/bash ./test.sh && cd ../..
  457. # TODO(teboring): Add it back.
  458. # pushd conformance
  459. # make test_php_zts_c
  460. # popd
  461. }
  462. build_php7.0_mac() {
  463. generate_php_test_proto
  464. # Install PHP
  465. curl -s https://php-osx.liip.ch/install.sh | bash -s 7.0
  466. PHP_FOLDER=`find /usr/local -type d -name "php7-7.0*"` # The folder name may change upon time
  467. export PATH="$PHP_FOLDER/bin:$PATH"
  468. # Install phpunit
  469. curl https://phar.phpunit.de/phpunit-5.6.0.phar -L -o phpunit.phar
  470. chmod +x phpunit.phar
  471. sudo mv phpunit.phar /usr/local/bin/phpunit
  472. # Install valgrind
  473. echo "#! /bin/bash" > valgrind
  474. chmod ug+x valgrind
  475. sudo mv valgrind /usr/local/bin/valgrind
  476. # Test
  477. cd php/tests && /bin/bash ./test.sh && cd ../..
  478. # TODO(teboring): Add it back
  479. # pushd conformance
  480. # make test_php_c
  481. # popd
  482. }
  483. build_php_compatibility() {
  484. internal_build_cpp
  485. php/tests/compatibility_test.sh
  486. }
  487. build_php7.1() {
  488. use_php 7.1
  489. pushd php
  490. rm -rf vendor
  491. cp -r /usr/local/vendor-7.1 vendor
  492. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  493. phpunit
  494. popd
  495. pushd conformance
  496. # TODO(teboring): Add it back
  497. # make test_php
  498. popd
  499. }
  500. build_php7.1_c() {
  501. use_php 7.1
  502. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  503. cd php/tests && /bin/bash ./test.sh && cd ../..
  504. pushd conformance
  505. # make test_php_c
  506. popd
  507. }
  508. build_php7.1_zts_c() {
  509. use_php_zts 7.1
  510. wget https://phar.phpunit.de/phpunit-5.6.0.phar -O /usr/bin/phpunit
  511. cd php/tests && /bin/bash ./test.sh && cd ../..
  512. pushd conformance
  513. # make test_php_c
  514. popd
  515. }
  516. build_php_all_32() {
  517. build_php5.5
  518. build_php5.6
  519. build_php7.0
  520. build_php7.1
  521. build_php5.5_c
  522. build_php5.6_c
  523. build_php7.0_c
  524. build_php7.1_c
  525. build_php5.5_zts_c
  526. build_php5.6_zts_c
  527. build_php7.0_zts_c
  528. build_php7.1_zts_c
  529. }
  530. build_php_all() {
  531. build_php_all_32
  532. build_php_compatibility
  533. }
  534. # Note: travis currently does not support testing more than one language so the
  535. # .travis.yml cheats and claims to only be cpp. If they add multiple language
  536. # support, this should probably get updated to install steps and/or
  537. # rvm/gemfile/jdk/etc. entries rather than manually doing the work.
  538. # .travis.yml uses matrix.exclude to block the cases where app-get can't be
  539. # use to install things.
  540. # -------- main --------
  541. if [ "$#" -ne 1 ]; then
  542. echo "
  543. Usage: $0 { cpp |
  544. cpp_distcheck |
  545. csharp |
  546. java_jdk7 |
  547. java_oracle7 |
  548. java_compatibility |
  549. javanano_jdk7 |
  550. javanano_oracle7 |
  551. objectivec_ios |
  552. objectivec_ios_debug |
  553. objectivec_ios_release |
  554. objectivec_osx |
  555. objectivec_cocoapods_integration |
  556. python |
  557. python_cpp |
  558. python_compatibility |
  559. ruby21 |
  560. ruby22 |
  561. jruby |
  562. ruby_all |
  563. php5.5 |
  564. php5.5_c |
  565. php5.6 |
  566. php5.6_c |
  567. php7.0 |
  568. php7.0_c |
  569. php_compatibility |
  570. php7.1 |
  571. php7.1_c |
  572. php_all)
  573. "
  574. exit 1
  575. fi
  576. set -e # exit immediately on error
  577. set -x # display all commands
  578. eval "build_$1"