From patchwork Wed Aug 1 10:06:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikita Sobolev X-Patchwork-Id: 952046 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="XZjRpvuX"; dkim-atps=neutral Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41gTVN39BFz9s1x for ; Wed, 1 Aug 2018 20:06:32 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id B37191005F; Wed, 1 Aug 2018 12:06:26 +0200 (CEST) X-Original-To: devel@uclibc-ng.org Delivered-To: devel@helium.openadk.org Received: from smtprelay.synopsys.com (us01smtprelay-2.synopsys.com [198.182.47.9]) by helium.openadk.org (Postfix) with ESMTPS id 3E3681005F for ; Wed, 1 Aug 2018 12:06:25 +0200 (CEST) Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 2AA5924E249C for ; Wed, 1 Aug 2018 03:06:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1533117983; bh=T+mPmuxiyr3Hxnclebi1ppT+w798y0OXI5BP489V6no=; h=From:To:Cc:Subject:Date:From; b=XZjRpvuX3mWvHHxjsKpaMDcy0ZbxWX4/Y9YVIXZwxCQtAIpv/1VZztdx1T89pCKqr ANqo0ImyxnZHDlJ6j3Z0NB8yX1qCvF+NYDSkzn8qDRQQvq64ppmTAQlUK8Zemen9io M2s0T6/bzQbtJPTQDdy2fGEqfsid6nTt+YGpTKW/0tNuMCqwn7V3YJUa37vav6LzC/ TpZU+BVYJ2Grp1f16cBPJilrBiRLR6R+rvtAo4DEMWO7aXtZgzxfteoSQYHceKoFVU ii8GluDXsMzCjHdSl25gQ0WjZdMoLCerF4jXqKNBleYCBL4f38eAnlueibhB07KlSh V9N7uWEyOZH5Q== Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id 85FC93ED0; Wed, 1 Aug 2018 03:06:21 -0700 (PDT) From: Nikita Sobolev To: devel@uclibc-ng.org Date: Wed, 1 Aug 2018 13:06:17 +0300 Message-Id: <20180801100617.14430-1-Nikita.Sobolev@synopsys.com> X-Mailer: git-send-email 2.16.2 Cc: Alexey.Brodkin@synopsys.com, Eugeniy.Paltsev@synopsys.com Subject: [uclibc-ng-devel] [PATCH] uclibcng-testrunner.sh: create /etc/ethers X-BeenThere: devel@uclibc-ng.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: uClibc-ng Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: devel-bounces@uclibc-ng.org Sender: "devel" /etc/ethers file is required for running tst-ethers and tst-ethers-line tests. If it does not exist, tests fail. Signed-off-by: Nikita Sobolev --- test/uclibcng-testrunner.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/uclibcng-testrunner.sh b/test/uclibcng-testrunner.sh index 4fd1661..4a02458 100644 --- a/test/uclibcng-testrunner.sh +++ b/test/uclibcng-testrunner.sh @@ -17,6 +17,9 @@ # of dealing in the work, even if advised of the possibility of such # damage or existence of a defect, except proven that it results out # of said person's immediate fault when using the work as intended. +# +# prepare function is used for creating ethers file. It is +# necessary for running tst-ethers and tst-ethers-line tests. #- # Testsuite runner @@ -25,6 +28,16 @@ die() { exit 1 } + +prepare() { + if [ ! -s /etc/ethers ] + then + echo "00:11:22:33:44:55 teeth" > /etc/ethers + fi +} + +prepare + test -s uclibcng-testrunner.in || die uclibcng-testrunner.in not found nfail=0