From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111]) by oss.sgi.com (Postfix) with ESMTP id 9F3797F3F for ; Wed, 10 Jul 2013 09:00:48 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay1.corp.sgi.com (Postfix) with ESMTP id 84A7A8F8039 for ; Wed, 10 Jul 2013 07:00:48 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id oD5EmcchnyOHs9Gu for ; Wed, 10 Jul 2013 07:00:46 -0700 (PDT) Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r6AE0iCD022351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 10 Jul 2013 10:00:45 -0400 Received: from localhost.localdomain.com (dhcp-1-146.brq.redhat.com [10.34.1.146]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r6AE0hbw007249 for ; Wed, 10 Jul 2013 10:00:43 -0400 From: Lukas Czerner Subject: [RFC][PATCH 00/10] xfstests: Add support for config section Date: Wed, 10 Jul 2013 16:00:29 +0200 Message-Id: <1373464839-31535-1-git-send-email-lczerner@redhat.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com This patch set adds support for sections in the configuration file while maintaining unchanged behaviour when no sections are present in the configuration file, or no configuration file is provided. Explanation, syntax and example follows. Configuration file with sections ================================ Configuration file with sections is useful for running xfstests on multiple file systems, or multiple file system setups in a single run without any help of external scripts. Syntax ------ Syntax for defining a section is the following: [section_name] Section name should consist of alphanumeric characters and '_'. Anything else is forbidden and the section will not be recognised. Each section in the configuration file should contain options in the format OPTION=value 'OPTION' must not contain any white space characters. 'value' can contain any character you want with one simple limitation - characters ' and " can only appear at the start and end of the 'value', however it is not required. Note that options are carried between sections so the same options does not have to be specified in each and every sections. However caution should be exercised not to leave unwanted options set from previous sections. Results ------- For every section xfstests will run with specified options and will produce separate results in the '$RESULT_BASE/$section_name' directory. Different mount options ----------------------- Specifying different mount options in difference config sections is allowed. When MOUNT_OPTIONS differs in the following section TEST_DEV will be remounted with new MOUNT_OPTIONS automatically before running the test. Multiple file systems --------------------- Having different file systems in different config sections is allowed. When FSTYP differs in the following section the FSTYP file system will be created automatically before running the test. Note that if MOUNT_OPTIONS, MKFS_OPTIONS, or FSCK_OPTIONS are not directly specified in the section it will be reset to the default for a given file system. You can also force the file system recreation by specifying RECREATE_TEST_DEV. Example ------- Here is an example of config file with sections: [ext4_4k_block_size] TEST_DEV=/dev/sda TEST_DIR=/mnt/test SCRATCH_DEV=/dev/sdb SCRATCH_MNT=/mnt/test1 MKFS_OPTIONS="-q -F -b4096" FSTYP=ext4 RESULT_BASE="`pwd`/results/`date +%d%m%y_%H%M%S`" [ext4_1k_block_size] MKFS_OPTIONS="-q -F -b1024" [ext4_nojournal] MKFS_OPTIONS="-q -F -b4096 -O ^has_journal" [xfs_filesystem] MKFS_OPTIONS="-f" FSTYP=xfs [ext3_filesystem] FSTYP=ext3 MOUNT_OPTIONS="-o noatime" _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs