]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: add multiple_rsync.sh workunit
authorSage Weil <sage@newdream.net>
Thu, 1 Sep 2011 00:41:12 +0000 (17:41 -0700)
committerSage Weil <sage@newdream.net>
Thu, 1 Sep 2011 00:41:12 +0000 (17:41 -0700)
For #1318

Signed-off-by: Sage Weil <sage@newdream.net>
qa/workunits/misc/multiple_rsync.sh [new file with mode: 0755]

diff --git a/qa/workunits/misc/multiple_rsync.sh b/qa/workunits/misc/multiple_rsync.sh
new file mode 100755 (executable)
index 0000000..945eb81
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh -ex
+
+rsync -av /usr/ usr.1
+rsync -av /usr/ usr.2
+
+# this shouldn't transfer any additional files
+echo we should get 4 here if no additional files are transfered
+rsync -auv /usr/ usr.1 | tee a
+wc -l a | grep 4
+rsync -auv /usr/ usr.2 | tee a
+wc -l a | grep 4
+
+echo OK
\ No newline at end of file