diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2014-07-10 05:45:52 +0200 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2014-07-14 06:29:15 -0700 |
commit | 210a59e48a52515615e440e2a6e1b650063c370b (patch) | |
tree | d7b6c13f342fc7ca01c17216720cf52990bd70aa /tests/basic/cdc.t | |
parent | f637f2f101b13388187f8a6852d3ae6f1d9c2ad5 (diff) |
Regression test portability: dd usage
NetBSD, FreeBSD, and MacOS X dd(1) bs argument uses m for megabyte, while
Linux uses M. Use bs=1024k instead of bs=1M for better compatibility.
BUG: 764655
Change-Id: I603f57adbc9b31f6d634b918726437fbfce42e03
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.org/8278
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Harshavardhana <harsha@harshavardhana.net>
Reviewed-by: Justin Clift <justin@gluster.org>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'tests/basic/cdc.t')
-rwxr-xr-x | tests/basic/cdc.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/basic/cdc.t b/tests/basic/cdc.t index f7c117063f8..be7d9a4ad0b 100755 --- a/tests/basic/cdc.t +++ b/tests/basic/cdc.t @@ -51,11 +51,11 @@ TEST glusterfs --entry-timeout=0 --attribute-timeout=0 -s $H0 --volfile-id $V0 $ #################### ## Create a 1K file locally and find the md5sum -TEST dd if=/dev/zero of=/tmp/cdc-orig count=1 bs=1K 2>/dev/null +TEST dd if=/dev/zero of=/tmp/cdc-orig count=1 bs=1k 2>/dev/null checksum[original-file]=`md5sum /tmp/cdc-orig | cut -d' ' -f1` ## Copy the file to mountpoint and find its md5sum on brick -TEST dd if=/tmp/cdc-orig of=$M0/cdc-server count=1 bs=1K 2>/dev/null +TEST dd if=/tmp/cdc-orig of=$M0/cdc-server count=1 bs=1k 2>/dev/null checksum[brick-file]=`md5sum $B0/${V0}1/cdc-server | cut -d' ' -f1` ## Uncompress the gzip dump file and find its md5sum @@ -75,7 +75,7 @@ TEST rm -f /tmp/cdcdump.gz ################### ## Copy file from mount point to client and find checksum -TEST dd if=$M0/cdc-server of=/tmp/cdc-client count=1 bs=1K 2>/dev/null +TEST dd if=$M0/cdc-server of=/tmp/cdc-client count=1 bs=1k 2>/dev/null checksum[client-file]=`md5sum /tmp/cdc-client | cut -d' ' -f1` ## Uncompress the gzip dump file and find its md5sum |