Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NTqoH-0006z1-0O for mharc-grub-devel@gnu.org; Sun, 10 Jan 2010 00:57:57 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NTqoE-0006ys-U9 for grub-devel@gnu.org; Sun, 10 Jan 2010 00:57:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NTqo9-0006yg-Of for grub-devel@gnu.org; Sun, 10 Jan 2010 00:57:53 -0500 Received: from [199.232.76.173] (port=55018 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NTqo9-0006yd-J6 for grub-devel@gnu.org; Sun, 10 Jan 2010 00:57:49 -0500 Received: from mail-qy0-f200.google.com ([209.85.221.200]:47906) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NTqo9-0000O9-8p for grub-devel@gnu.org; Sun, 10 Jan 2010 00:57:49 -0500 Received: by qyk38 with SMTP id 38so1242869qyk.25 for ; Sat, 09 Jan 2010 21:57:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=bAGH6tGBPqWGDFFwMHiGzJIZMMdMd6qBDLChgKbUryc=; b=p2jovPPP/D+dftBFYd+FnC4SvnfmSlG8XZW2qkno9YFUXZZbkClD2JwUrg24feGiKz 3mXh9I9j7oUZ93cW9rnqsr/vcPvXBB8oNVK0IzlRAQ+3wltobGYwQrd7/EnR4TGAE/rF DYZAgZFOtDsbxfsLbWnnaIINSjoddmojB9ex0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=I83HRISWcV8OU5Z2Lx/6LXz0ifBLwkUGd4e2oZGJ7C+f6zhGKIy82MiQnVRXu32tbL O2WkL/qdgbhXdONfnx5cZbER1WaKU+ZWMT6TfELGqSD5UftiSwM5qVV2wSMyZBn4NSFx rmNFLfifwkUijm/W48i80HFbr2JdtPe82NCf0= MIME-Version: 1.0 Received: by 10.220.122.27 with SMTP id j27mr3360315vcr.68.1263103067643; Sat, 09 Jan 2010 21:57:47 -0800 (PST) In-Reply-To: References: Date: Sun, 10 Jan 2010 11:27:47 +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 monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATC] Unit testing framework adjusted over trunk 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: Sun, 10 Jan 2010 05:57:55 -0000 Some minor comments: + +if ! diff -q ${outfile1} ${outfile2} >/dev/null +then + echo "$1: GRUB and BASH outputs (${outfile1}, ${outfile2}) did not match" + status=1 +else + rm -f ${outfile1} ${outfile2} +fi + 1. In the above echo statement, $1 doesn't resolve to the testcase file name, use ${source} instead. 2. Change the "(${outfile1}, ${outfile2})" to "(see diff -u ${outfile1} ${outfile2})" so that developer can select-n-paste the command more easily. -- bvk.chaitanya