Skip to content

Commit

Permalink
Untested attempt to switch cruise control to bjam
Browse files Browse the repository at this point in the history
  • Loading branch information
kpu committed Nov 25, 2011
1 parent cc44059 commit f09eeb6
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions cruise-control/test_all_new_commits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,26 +85,26 @@ function run_single_test () {
git checkout --force $commit 2>/dev/null || die "Failed to checkout commit $commit"

err=""
echo "## regenerate-makefiles.sh" >> $longlog
./regenerate-makefiles.sh >> $longlog 2>&1 || err="regenerate-makefiles"
# echo "## regenerate-makefiles.sh" >> $longlog
# ./regenerate-makefiles.sh >> $longlog 2>&1 || err="regenerate-makefiles"

echo "## make clean" >> $longlog
make clean >> $longlog 2>&1 || warn "make clean failed, suspicious"
echo "## ./bjam clean" >> $longlog
./bjam clean >> $longlog 2>&1 || warn "bjam clean failed, suspicious"

echo "## ./configure $MCC_CONFIGURE_ARGS" >> $longlog
if [ -z "$err" ]; then
./configure $MCC_CONFIGURE_ARGS >> $longlog 2>&1 || err="configure"
fi
# echo "## ./configure $MCC_CONFIGURE_ARGS" >> $longlog
# if [ -z "$err" ]; then
# ./configure $MCC_CONFIGURE_ARGS >> $longlog 2>&1 || err="configure"
# fi

echo "## make" >> $longlog
echo "## ./bjam $MCC_CONFIGURE_ARGS" >> $longlog
if [ -z "$err" ]; then
make >> $longlog 2>&1 || err="make"
./bjam $MCC_CONFIGURE_ARGS >> $longlog 2>&1 || err="make"
fi

echo "## make scripts" >> $longlog
cd scripts
if [ -z "$err" ]; then
make >> $longlog 2>&1 || err="make scripts"
../bjam >> $longlog 2>&1 || err="bjam scripts"
fi
cd ..

Expand Down Expand Up @@ -139,8 +139,8 @@ function run_single_test () {
cd ..
touch giza-pp.ok
fi
sed -i 's#^my \$BINDIR\s*=.*#my \$BINDIR="'$(pwd)/giza-pp/bin/'";#' \
scripts/training/train-model.perl
sed 's#^my \$BINDIR\s*=.*#my \$BINDIR="'$(pwd)/giza-pp/bin/'";#' \
<scripts/training/train-model.perl.missing_bin_dir >scripts/training/train-model.perl
srilm_dir=$(echo $MCC_CONFIGURE_ARGS | sed -r 's/.*--with-srilm=([^ ]+) .*/\1/')
mach_type=$($srilm_dir/sbin/machine-type)
mkdir -p "$WORKDIR/ems_workdir"
Expand Down

0 comments on commit f09eeb6

Please sign in to comment.