| | #!/bin/bash |
| | |
| | |
| |
|
| | set -e -o pipefail |
| |
|
| | opt=$(pwd)/opt |
| |
|
| | args=$(getopt -oj:aq -lwith-irstlm:,with-boost:,with-cmph:,with-regtest:,no-xmlrpc-c,with-xmlrpc-c:,full -- "$@") |
| | eval set -- "$args" |
| |
|
| | |
| | noserver=false; |
| | full=false; |
| | j=$(getconf _NPROCESSORS_ONLN) |
| | irstlm=$opt/irstlm-5.80.08 |
| | boost=$opt |
| | cmph=$opt |
| | xmlrpc=--with-xmlrpc-c\=$opt |
| | regtest=$(pwd)/regtest |
| | unset q |
| | unset a |
| | |
| | |
| | skipcompact=--regtest-skip-compactpt |
| |
|
| | |
| | while true ; do |
| | case "$1" in |
| | -j ) j=$2; shift 2 ;; |
| | -a ) a=-a; shift ;; |
| | -q ) q=-q; shift ;; |
| | --no-xmlrpc-c ) xmlrpc=$1; shift ;; |
| | --with-xmlrpc-c ) |
| | xmlrpc=--with-xmlrpc-c\=$2; shift 2 ;; |
| | --with-irstlm ) irstlm=$2; shift 2 ;; |
| | --with-boost ) boost=$2; shift 2 ;; |
| | --with-cmph ) cmph=$2; shift 2 ;; |
| | --with-regtest ) regtest=$2; shift 2 ;; |
| | --full ) full=true; shift 2 ;; |
| | -- ) shift; break ;; |
| | * ) break ;; |
| | esac |
| | done |
| |
|
| | if [ $? != 0 ] ; then exit $?; fi |
| |
|
| | git submodule init |
| | git submodule update regtest |
| |
|
| | |
| | |
| | |
| | set -x |
| | if [ "$full" == true ] ; then |
| | ./bjam -j$j --with-mm --with-mm-extras --with-irstlm=$irstlm --with-boost=$boost --with-cmph=$cmph --no-xmlrpc-c --with-regtest=$regtest -a $skipcompact $@ $q || exit $? |
| | if ./regression-testing/run-single-test.perl --server --startuptest ; then |
| | ./bjam -j$j --with-mm --with-mm-extras --with-irstlm=$irstlm --with-boost=$boost --with-cmph=$cmph $xmlrpc --with-regtest=$regtest -a $skipcompact $@ $q |
| | fi |
| | else |
| | |
| | if [ "$q" == "-q" ] ; then j=1; fi |
| |
|
| | if ./regression-testing/run-single-test.perl --server --startuptest ; then |
| | ./bjam -j$j --with-mm $q $a --with-irstlm=$irstlm --with-boost=$boost --with-cmph=$cmph $xmlrpc --with-regtest=$regtest $skipcompact $@ |
| | else |
| | ./bjam -j$j --with-mm --with-mm-extras $q $a --with-irstlm=$irstlm --with-boost=$boost --with-cmph=$cmph --no-xmlrpc-c --with-regtest=$regtest $skipcompact $@ |
| | fi |
| | fi |
| |
|
| | |
| | |
| | |
| | |
| | |
| |
|
| | |
| | |
| |
|
| | |
| | |
| | |
| | |
| |
|