You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.1 KiB

# Script to bisect an osmo-* project with the docker ttcn3 images
# You need the git checkout of the project you wand to test as well as a
# checkout of the docker-playground repository.
# Use like this from the osmo-* project repository where the regression
# occurs:
# $ git bisect start <bad-rev> <good-rev>
# $ git bisect run ~/scm/osmo/docker-playground/ <component-to-test> <testcase>
# e.g.:
# $ git bisect run ~/scm/osmo/docker-playground/ bsc BSC_Tests.TC_ho_in_fail_no_detect
DOCKER_PLAYGROUND=$(dirname "$0")
COMP_UPPER=$(echo "$1" | tr '[:lower:]' '[:upper:]')
COMP_LOWER=$(echo "$1" | tr '[:upper:]' '[:lower:]')
COMMIT=$(git log -1 --format=format:%H)
case $COMP_LOWER in
echo "Unknown repo, please fix the script!"
exit 125
export "$BRANCH=$COMMIT"
cd "$DOCKER_PLAYGROUND/$SUITE" || exit 125
echo "Testing for $COMMIT"
./ | grep -- "====== $TESTCASE pass ======"
exit $?