From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Nrc5A-0001cS-9g for mharc-grub-devel@gnu.org; Tue, 16 Mar 2010 15:05:36 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nrc57-0001aT-UQ for grub-devel@gnu.org; Tue, 16 Mar 2010 15:05:34 -0400 Received: from [140.186.70.92] (port=43937 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nrc56-0001ZC-OQ for grub-devel@gnu.org; Tue, 16 Mar 2010 15:05:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nrc54-0001Hm-48 for grub-devel@gnu.org; Tue, 16 Mar 2010 15:05:32 -0400 Received: from mail-vw0-f41.google.com ([209.85.212.41]:39565) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nrc54-0001Hc-11 for grub-devel@gnu.org; Tue, 16 Mar 2010 15:05:30 -0400 Received: by vws4 with SMTP id 4so144186vws.0 for ; Tue, 16 Mar 2010 12:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=2yBm2aaHN1eyUN/C15FeZYmOOCEt5C7Xrcgn/mFlFp4=; b=AMb6cJGHhFkX2YWi0a+RpHIFWt8HTF4fZXttM0n5gowDNYD23e2w2u2EwsPJyOjWti hhFGLqkF56dgtj16muqj1hHptyDIg4wds1kK9mxLMZ6kBRyyAJs0yVdAn8iARyGL//lP 3J60+7TWPdxDMkiRUTDf3zIPbt7LaRhPtGEcE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=S3UAeJUrEvFnFce+fY99AtDY6qY+RSWKKVEQftb0WzW/r4CL0t1t1VdEWUnqk6hW0h btevR6J56gFJdIpoAYiObSDZWGOhOEPU6O2VBpQTKm3oBT6V78lRUSDMmNGAhmSIgZcJ CI2Nfxi8d/GeRjln7OhpuFgoNKC0C4qEiJpfQ= MIME-Version: 1.0 Received: by 10.220.124.209 with SMTP id v17mr25533vcr.141.1268766329137; Tue, 16 Mar 2010 12:05:29 -0700 (PDT) Date: Wed, 17 Mar 2010 00:35:28 +0530 Message-ID: From: BVK Chaitanya To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: [PATCH] Testcase for checking lvm module X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2010 19:05:34 -0000 Hi, Attached patch adds a testcase to check for GRUB's lvm module functionality. It configures lvm volumes on-the-fly on temporary disk images, and tests to see whether grub-shell ls command identifies them or not. Since all of the LVM operations need root privilege, this real test is performed only when it is executed as root (or sudo make check); test simply passes otherwise. In future we may add sudo-check Makefile target to execute these type of tests automatically sing "sudo" feature. -- bvk.chaitanya