Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp622388img; Fri, 22 Mar 2019 05:20:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyOAlkWw9ekAT3UcNgPdgPvXL0LqfjEoXXTakgpQ5jLHwTM7KaH3r7EgjvOt0dgcF0RsRAT X-Received: by 2002:a62:b415:: with SMTP id h21mr8883553pfn.26.1553257250631; Fri, 22 Mar 2019 05:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553257250; cv=none; d=google.com; s=arc-20160816; b=n/3obQaflsKpJMq60Hp/cSFYffzzU8FgxN6Pgq/0uIO/nmncf+axAcyXVyWoabN1R1 Q+JY0RK4pk/5ya4VynIwrR6N2S3eIKdXzCfZ5kKL7FY5hGswplA74u83PSVEgnN7BHu9 vD8IWpe5ty1vSzvOQ85Ba/f7WbBkJTPadxEXy5SJC6qaoUWlCU4AiRu5b3mrWmlSinqx t4XgKqngnrpbvEYoDset/6A1QAHBMc5F/AZ/Xq7jOoyUDRNRC+OK6SXsoVJ+j6DF1n0t 4N+aFrjBRHUieo5M9KXpTqczLTSN1aWMiJzd25wFWSc1a/T7R5Esmba1qzGTfFXYOztR pKuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=gWeqMyhDEbkdk91CsxYi9qEIr8pvUuyFelesI/RVzBY=; b=hQ516NAxvZWj4b3qz6IhodaYUB4cozcGaIMpDQlQ+iuj52mSct+/VRi9cXwhl+B68+ KywOD0W/XhgxK2gXfoB5yKJVkKK6owPSoYOLx3Bip8QJrdDMz7FvztMUTubviycnfoZc mx25SNRGzyfhJxTHCuUYqlAhcpZtOT41WLf26nZl8KpRKf/VaelFz4Z5HBmPwrsavFbj Dzq77irmObIj4VfYDXkS/hA3sUrpUy75lDVF/0pSY1p8zKXtiF1e/OUYBdEpzgR7ffEB R7RvrQCWYSyMjevfNDy/tZD+4mfDnIYBik+8+k7LnTxIyIYDYbcxCyIgbeGwpywmWipv p7/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si6671626pgv.10.2019.03.22.05.20.35; Fri, 22 Mar 2019 05:20:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390356AbfCVMSv (ORCPT + 99 others); Fri, 22 Mar 2019 08:18:51 -0400 Received: from mx2.suse.de ([195.135.220.15]:38966 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390153AbfCVMSp (ORCPT ); Fri, 22 Mar 2019 08:18:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 56ED2AB91; Fri, 22 Mar 2019 12:18:44 +0000 (UTC) Date: Fri, 22 Mar 2019 13:18:42 +0100 From: Petr Vorel To: djacobs7@binghamton.edu Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, zohar@linux.ibm.com, vt@altlinux.org Subject: Re: [PATCH v2 1/8] evmtest: Regression testing integrity subsystem Message-ID: <20190322121842.GA32091@dell5510> Reply-To: Petr Vorel References: <20190322083441.31084-1-djacobs7@binghamton.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190322083441.31084-1-djacobs7@binghamton.edu> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, > $ evmtest runtest example_test -e /bin/bash > [*] Starting test: example_test > [*] TEST: PASSED > Example 1a: successful verbose example test output > $ evmtest runtest example_test -e /bin/bash -v ... > Changelog: ... > * checkbashishms compliant Not yet :). I noticed using source (should be .) == (should be =) ${BASH_SOURCE[0]} (should be $0) $UID (should be $(id -u) bash redirection &>> (should be >/dev/null 2>&1) += (should be VAR="${VAR}foo") and bash shebang. Could you please fix that? ... > +++ b/evmtest/evmtest > @@ -0,0 +1,67 @@ > +#!/bin/bash Can we, please, use /bin/sh and not-expect bash? Portability matters. > +source "$EVMDIR"/files/common.sh > +usage (){ > + echo "Usage:" > + echo " evmtest runtest [OPTIONS]" > + echo "" Can be just echo. Maybe using cat might be better than many echos: cat < [OPTIONS] ... EOF Kind regards, Petr