*" -A") e_source=false; e_targets='build-indep binary-indep' ;;
*" -S") e_source=true; e_targets=' ' ;;
*" -F") e_source=true; e_targets='build binary' ;;
+ *" -G") e_source=true; e_targets='build-arch binary-arch' ;;
+ *" -g") e_source=true; e_targets='build-indep binary-indep' ;;
*) e_source=true; e_targets='build binary' ;;
esac
}
}
bm-run-one () {
- local args="--clean=$cleanmode $real_act"
+ local args="$DGIT_TEST_BM_BASEARGS --clean=$cleanmode $real_act"
bmid="$act,$cleanmode,$branch"
bmid=${bmid// /_}
bm-compute-expected
git checkout $branch
+ git clean -xdf # since we might not do any actual cleaning
dsc='../example_1.0.dsc'
rm -f $dsc
set +o pipefail
- t-dgit --git=$tmp/stunt-git $args 2>&1 | tee $bmlog
+ t-dgit --rm-old-changes --git=$tmp/stunt-git $args 2>&1 | tee $bmlog
local ps="${PIPESTATUS[*]}"
set -o pipefail
done
: bm-act-iterate done.
}
+
+bm-alwayssplit () {
+ local t=${0##*/}
+ DGIT_TEST_BM_BASEARGS+=' --always-split-source-build'
+ export DGIT_TEST_BM_BASEARGS
+ t-chain-test "${t%%-asplit}"
+}