+# check if we are running under debian-test, and change behaviour to suit
+if test -n "${DEBIANTEST_LIB}" ; then
+ # make sure rsync is installed
+ test -e /usr/bin/rsync || exit 0
+
+ . ${DEBIANTEST_LIB}/functions.sh
+ Debian=1
+else
+ cat <<EOF
+
+This set of tests is not completely portable. It is intended for developers
+not for end users. You may experience failures on some platforms that
+do not indicate a problem with rsync.
+
+EOF
+ export PATH=.:$PATH
+ runtest() {
+ echo -n "Test $1: "
+ eval "$2"
+ }
+ printmsg() {
+ echo ""
+ echo "**** ${1}^G ****"
+ echo ""
+ }
+fi
+