#!/usr/bin/env bash # # wrapper around partest for fine-grained test selection via ack declare quiet failed update partest_debug declare cotouched since sortCommand declare -a ack_args partest_args scalac_args declare -r standard_ack_args="--noenv -s --java --scala --type-add=scala:ext:flags,check --files-with-matches" partest_args=( --show-diff ) bindir="$(cd "$(dirname "$0")" && pwd)" base="$bindir/.." cd "$base" || { echo "Could not change to base directory $base" && exit 1; } filesdir="test/files" sortCommand="sort -u" partestPaths="$bindir/partest-paths" [[ -x "$partestPaths" ]] || { echo "Cannot find partest-paths in $partestPaths" && exit 1; } [[ $# -gt 0 ]] || { cat < [-dfquvp] [ack options] -f pass --failed to partest -q pass --terse to partest -u pass --update-check to partest -p select tests appearing in commits where was also modified -s