Navigation Menu

Skip to content

Commit

Permalink
Use parallel test by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 12, 2013
1 parent 9b1f89a commit 3a43fe3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion sync.sh
Expand Up @@ -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()
Expand Down Expand Up @@ -115,7 +128,7 @@ build()
run_test()
{
cd "${mroonga_branch_dir}/mysql-test"
./mysql-test-run
./mysql-test-run --parallel=${n_processors}
}

setup_repositories
Expand Down

0 comments on commit 3a43fe3

Please sign in to comment.