[sheepdog] [PATCH 1/2] functional: add 065 to test cache push
MORITA Kazutaka
morita.kazutaka at gmail.com
Fri Jun 21 02:22:10 CEST 2013
At Thu, 20 Jun 2013 15:59:56 +0800,
Liu Yuan wrote:
>
> This can reproduce the bug fixed by
> "sheep: check local request if it is in recovery"
>
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
> tests/functional/065 | 37 +++++++++++++++++++++++++++++++++++++
> tests/functional/065.out | 10 ++++++++++
> tests/functional/group | 1 +
> 3 files changed, 48 insertions(+)
> create mode 100755 tests/functional/065
> create mode 100644 tests/functional/065.out
>
> diff --git a/tests/functional/065 b/tests/functional/065
> new file mode 100755
> index 0000000..5f82d67
> --- /dev/null
> +++ b/tests/functional/065
> @@ -0,0 +1,37 @@
> +#!/bin/bash
> +
> +# Test cache push while in recovery
> +
> +seq=`basename $0`
> +echo "QA output created by $seq"
> +
> +here=`pwd`
> +tmp=/tmp/$$
> +status=1 # failure is the default!
> +
> +# get standard environment, filters and checks
> +. ./common.rc
> +. ./common.filter
> +
> +_cleanup
> +
> +for i in `seq 0 1`; do
> + _start_sheep $i "-w size=400"
> +done
> +
> +_wait_for_sheep 2
> +_cluster_format -c 2
> +
> +$COLLIE vdi create t 1G -P
> +
> +# move objects into stale directory
> +_kill_sheep 0
> +_start_sheep 0 "-w size=400"
> +_wait_for_sheep 2
> +
> +dd if=/dev/zero | $COLLIE vdi write -w t &
> +
> +_wait_for_sheep_recovery 1
> +wait
> +
> +$COLLIE cluster info | _filter_cluster_info
I wonder if we should add tests only for object cache. Can we test
the similar things by setting the environment variable? For example,
# SHEEP_OPTIONS="-n -d -w size=400" ./tests/functional/check
Thanks,
Kazutaka
More information about the sheepdog
mailing list