Kouhei Sutou
null+****@clear*****
Wed Jun 12 18:15:51 JST 2013
Kouhei Sutou 2013-06-12 18:15:51 +0900 (Wed, 12 Jun 2013) New Revision: 3a43fe368d7636ebcd8c3a83b692e3dbe723c74f https://github.com/mroonga/mariadb-sync/commit/3a43fe368d7636ebcd8c3a83b692e3dbe723c74f Message: Use parallel test by default Modified files: sync.sh Modified: sync.sh (+14 -1) =================================================================== --- sync.sh 2013-06-12 16:09:06 +0900 (c48b163) +++ sync.sh 2013-06-12 18:15:51 +0900 (69d8f57) @@ -19,6 +19,19 @@ tmp_install_dir="${top_dir}/tmp/local" build_dir="${tmp_dir}/mroonga.build" +n_processors=1 +case `uname` in + Linux) + n_processors="$(grep '^processor' /proc/cpuinfo | wc -l)" + ;; + Darwin) + n_processors="$(/usr/sbin/sysctl -n hw.ncpu)" + ;; + *) + : + ;; +esac + export PKG_CONFIG_PATH="${tmp_install_dir}/lib/pkgconfig" setup_repositories() @@ -115,7 +128,7 @@ build() run_test() { cd "${mroonga_branch_dir}/mysql-test" - ./mysql-test-run + ./mysql-test-run --parallel=${n_processors} } setup_repositories -------------- next part -------------- HTML����������������������������...Download