From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Price Date: Wed, 14 Jan 2015 16:16:21 +0000 Subject: [Cluster-devel] [PATCH 5/5] gfs2-utils tests: Document usage of convenience macros In-Reply-To: <1421252181-20776-1-git-send-email-anprice@redhat.com> References: <1421252181-20776-1-git-send-email-anprice@redhat.com> Message-ID: <1421252181-20776-5-git-send-email-anprice@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Lower the barrier to writing tests by adding some docs to clarify the m4 convenience macros in testsuite.at. Signed-off-by: Andrew Price --- tests/testsuite.at | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/testsuite.at b/tests/testsuite.at index aa86966..0422b02 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -1,15 +1,18 @@ # Regenerate the sparse file used for testing and skip the test if it fails +# Usage: GFS_TGT_REGEN m4_define([GFS_TGT_REGEN], [AT_CHECK([rm -f $GFS_TGT && truncate -s ${GFS_TGT_SZ}G ${GFS_TGT}], [ignore], [ignore], [ignore]) AT_SKIP_IF([test ! -f ${GFS_TGT}])]) # Regenerate, check, fsck is used a lot so combine it into one macro +# Usage: GFS_FSCK_CHECK ([mkfs.gfs2 ... $GFS_TGT]) m4_define([GFS_FSCK_CHECK], [GFS_TGT_REGEN AT_CHECK($1, 0, [ignore], [ignore]) AT_CHECK([fsck.gfs2 -n $GFS_TGT], 0, [ignore], [ignore])]) # Regenerate, mkfs, modify fs with gfs2l, fsck +# Usage: GFS_TGT_REGEN ([], []) m4_define([GFS_LANG_CHECK], [GFS_TGT_REGEN AT_CHECK($1, 0, [ignore], [ignore]) -- 1.9.3