11 *) onepackage_args[${#onepackage_args[*]}]="${arg#@}" ;;
21 if [ "x$distro" = x ]; then
22 : ${testbed_check_path:=/var/lib/autopkgtest/xenlvm/adt_${distro}/good}
24 : ${testbed_check_path:=/dev/null}
27 if [ "x$test_classes" = x]; then
28 : ${architecture:=`dpkg --print-architecture`}
29 test_classes="source $distro, target=source : binary $distro, target=binary-$architecture"
32 fail () { printf >&2 "%s\n" "$*"; exit 127; }
33 progress () { printf "========== %s ==========\n" "$1"; }
34 x () { printf "+ %s\n" "$*"; "$@"; }
35 x2 () { printf >&2 "+ %s\n" "$*"; "$@"; }
41 while ($go_anyway || test -f go) && test $test_count -lt $max_test_count; do
45 if ! test -e $testbed_check_path; then
46 printf " testbed broken, bailing\n"
50 xopts="${test_classes%%:*}"
51 xopts_opts="${xopts#*,}"
52 test_classes="${test_classes#*:}:$xopts"
53 printf "considering (%s) " "$xopts_opts"
56 for x in ${xopts%%,*}; do
57 if test -f "stop-$x"; then
58 printf " skipping because of %s" "$x"
68 adt-testreport-onepackage \
69 adtrun_extra_opts=--built-binaries-filter=__ \
71 "${onepackage_args[@]}" \
74 test_count=$(( $test_count + 1 ))