[sheepdog] [PATCH] tests/func/020: add size parameter test

Robin Dong robin.k.dong at gmail.com
Wed Dec 4 04:15:04 CET 2013


Reviewed-by: Robin Dong <sanbai at taobao.com>


2013/12/3 Liu Yuan <namei.unix at gmail.com>

> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  tests/functional/020     |   16 +++++++++++++++-
>  tests/functional/020.out |   10 ++++++++++
>  2 files changed, 25 insertions(+), 1 deletion(-)
>
> diff --git a/tests/functional/020 b/tests/functional/020
> index 6610bb1..00af829 100755
> --- a/tests/functional/020
> +++ b/tests/functional/020
> @@ -1,6 +1,6 @@
>  #!/bin/bash
>
> -# Test object cache reclaim
> +# Test object cache reclaim and size parameter
>
>  . ./common
>
> @@ -21,3 +21,17 @@ nr=`ls $STORE/0/cache/7c2b25 | wc -l`
>  if [ $nr -gt 4 ]; then
>      echo "reclaim failed"
>  fi
> +
> +_cleanup
> +
> +_start_sheep 0 "-w size=200M"
> +_start_sheep 1 "-w size=200G"
> +_start_sheep 2 "-w size=20T"
> +
> +_wait_for_sheep 3
> +
> +_cluster_format -c 3
> +
> +for i in 0 1 2; do
> +    $DOG vdi cache info -p 700$i
> +done
> diff --git a/tests/functional/020.out b/tests/functional/020.out
> index 1c3490c..18eb020 100644
> --- a/tests/functional/020.out
> +++ b/tests/functional/020.out
> @@ -1,2 +1,12 @@
>  QA output created by 020
>  using backend plain store
> +using backend plain store
> +Name   Tag     Total   Dirty   Clean
> +
> +Cache size 200 MB, used 0.0 MB, non-directio
> +Name   Tag     Total   Dirty   Clean
> +
> +Cache size 200 GB, used 0.0 MB, non-directio
> +Name   Tag     Total   Dirty   Clean
> +
> +Cache size 20 TB, used 0.0 MB, non-directio
> --
> 1.7.9.5
>
> --
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog
>



-- 
--
Best Regard
Robin Dong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20131204/6168c861/attachment-0004.html>


More information about the sheepdog mailing list