X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/bf4e725d5d3c0a06c9a8d74cb9b1c183e161f148..c127e8aaec2b0ea408a3cd3a36fd910520249332:/testsuite/trimslash.test?ds=sidebyside diff --git a/testsuite/trimslash.test b/testsuite/trimslash.test new file mode 100644 index 00000000..cf118407 --- /dev/null +++ b/testsuite/trimslash.test @@ -0,0 +1,29 @@ +#! /bin/sh + +# Copyright (C) 2002 by Martin Pool + +# This program is distributable under the terms of the GNU GPL (see +# COPYING). + +# Test tiny function to trim trailing slashes. + +. $srcdir/testsuite/rsync.fns + +set -x + +"$TOOLDIR/trimslash" "/usr/local/bin" "/usr/local/bin/" "/usr/local/bin///" \ + "//a//" "////" \ + "/Users/Wierd Macintosh Name/// Ooh, translucent plastic/" \ + > "$scratchdir/slash.out" +diff -c "$scratchdir/slash.out" - <