From: Ira Weiny Date: Mon, 23 Sep 2019 17:59:59 +0000 (-0700) Subject: generic: Add lease testing X-Git-Tag: v2022.05.01~1014 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ac92390251f31fa88977c3032648f892c04d49c2;p=xfstests-dev.git generic: Add lease testing The actual lease test code has been added to src/locktest.c (see previous commits), now create a new lease test script to drive the test. Signed-off-by: Ira Weiny Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/locktest b/common/locktest index c41f5054..1da5fbb1 100644 --- a/common/locktest +++ b/common/locktest @@ -89,3 +89,7 @@ _run_generic() { _run_locktest() { _run_generic "" } + +_run_leasetest() { + _run_generic "-L" +} diff --git a/tests/generic/571 b/tests/generic/571 new file mode 100755 index 00000000..68c8a604 --- /dev/null +++ b/tests/generic/571 @@ -0,0 +1,32 @@ +#! /bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2019 Intel, Corp. All Rights Reserved. +# +# FSQA Test No. 571 +# +# lease test +# +seq=`basename $0` +seqres=$RESULT_DIR/$seq +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 +. ./common/locktest + +trap "_cleanup; exit \$status" 0 1 2 3 15 + +# real QA test starts here +_supported_fs generic +_supported_os Linux +_require_test +_require_test_fcntl_advisory_locks + +_run_leasetest + +exit diff --git a/tests/generic/571.out b/tests/generic/571.out new file mode 100644 index 00000000..cc80a844 --- /dev/null +++ b/tests/generic/571.out @@ -0,0 +1,2 @@ +QA output created by 571 +success! diff --git a/tests/generic/group b/tests/generic/group index ee06992f..ff2b2e35 100644 --- a/tests/generic/group +++ b/tests/generic/group @@ -573,3 +573,4 @@ 568 auto quick rw prealloc 569 auto quick rw swap prealloc 570 auto quick rw swap +571 auto quick