From patchwork Wed Sep 19 23:36:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 972010 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="QdyhSV+X"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42Fx8X0W32z9sCP for ; Thu, 20 Sep 2018 09:36:44 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733301AbeITFQ6 (ORCPT ); Thu, 20 Sep 2018 01:16:58 -0400 Received: from mail-wr1-f48.google.com ([209.85.221.48]:46485 "EHLO mail-wr1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733147AbeITFQ5 (ORCPT ); Thu, 20 Sep 2018 01:16:57 -0400 Received: by mail-wr1-f48.google.com with SMTP id a108-v6so7448528wrc.13 for ; Wed, 19 Sep 2018 16:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+rWRPHk2Fsgsb4qX7foO3/SE5iptU/tMos1sud91pdk=; b=QdyhSV+XQyboYR8WCSpmn59vsdw8bnzqyTTvOWQsvjR+XLsAypiU3OZ9LLxsUukmr+ V/auxGuNVxAG3rWxp1NVnxM+wqz653t1ESY6NdOi46mv3ixogYU/tf1Yx+GPiZNEt6iS lspPkSrRe9jGzXDl8WRE+T1DlG3up8R+zKsnggCa22UAN8V17FQXIjUJquv+bYRef0lF znHLB5XYonMm9GfMVgvLh33TVnD6I5QwBGNKmVdnzyk90RWIJJPZsfIguQTjWR1gz+XE wHaC/RlZEL13UPIeGJ+MdLVMS3rWd1ugFX4IY7ncJfYX34slwFYOyld5xNpoZ1ihstM3 Qd4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+rWRPHk2Fsgsb4qX7foO3/SE5iptU/tMos1sud91pdk=; b=E7XUuqt+lPveWJDNSOyqelHKW558M320bFd16uaq505RLoA3gpFCvReZONo9BAdZ0S cGmQfpFKMi/gkVqxPtHusf9iZJPreiH6fh6f+yNoj3G7x7R8MzttyfNyiaXqPT3XDQpr kJiNRJKx7OdwI4aCEvCoW5XN3rZy3Eev/9wS/FC06GBXcTtEaTlbU/ic7M6+Xa5msTdj 1vIttIZxK9lBSC7p9Nc2EmEDEXmrGUYPZJ+H9nVA3Oq5odrozBym6q2cqWsd4BsVRX08 a83zx1SoKNE2Bkkr1oCQcgZP6d21O/yFx9QMR/Efq694JC3JjtEyaRPWsteTDmkIp91Y ZQKg== X-Gm-Message-State: APzg51CF1oxRa4Crs4KSOdiUjzFfKyBzcJtCdNjA6BywJdYSrlal0Mgh e0KPUAxBEYs+ezDU58tztpjHtbws X-Google-Smtp-Source: ANB0VdbI+1Lf/VKpv0YoWnd+y699cLU2/i7M4k08MoftmXGxRKSrknOQa49fduppSofsW2KMcArLJg== X-Received: by 2002:adf:d4c6:: with SMTP id w6-v6mr30104826wrk.185.1537400198445; Wed, 19 Sep 2018 16:36:38 -0700 (PDT) Received: from localhost.localdomain ([193.179.3.151]) by smtp.gmail.com with ESMTPSA id w10-v6sm21920537wrp.31.2018.09.19.16.36.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Sep 2018 16:36:37 -0700 (PDT) From: Petr Vorel To: netdev@vger.kernel.org Cc: Petr Vorel , Stephen Hemminger , Phil Sutter , Luca Boccassi Subject: [PATCH iproute2 v2 1/3] testsuite: Fix missing generate_nlmsg Date: Thu, 20 Sep 2018 01:36:22 +0200 Message-Id: <20180919233624.18494-2-petr.vorel@gmail.com> X-Mailer: git-send-email 2.19.0.rc2 In-Reply-To: <20180919233624.18494-1-petr.vorel@gmail.com> References: <20180919233624.18494-1-petr.vorel@gmail.com> MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Commit ad23e152 caused generate_nlmsg to be always missing: $ make alltests make: ./tools/generate_nlmsg: Command not found Create testclean: to remove only results directory. Fixes: ad23e152 testsuite: remove all temp files and implement make clean Signed-off-by: Petr Vorel --- testsuite/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/testsuite/Makefile b/testsuite/Makefile index d1ac997d..a31d4531 100644 --- a/testsuite/Makefile +++ b/testsuite/Makefile @@ -30,7 +30,6 @@ configure: compile: configure echo "Entering iproute2" && cd iproute2 && $(MAKE) && cd ..; - $(MAKE) -C tools listtests: @for t in $(TESTS); do \ @@ -39,9 +38,11 @@ listtests: alltests: $(TESTS) -clean: +testclean: @echo "Removing $(RESULTS_DIR) dir ..." @rm -rf $(RESULTS_DIR) + +clean: testclean @rm -f iproute2/iproute2-this @rm -f tests/ip/link/dev_wo_vf_rate.nl $(MAKE) -C tools clean @@ -49,18 +50,18 @@ clean: distclean: clean echo "Entering iproute2" && cd iproute2 && $(MAKE) distclean && cd ..; -$(TESTS): clean +$(TESTS): testclean ifeq (,$(HAVE_UNSHARED_UTIL)) $(error Please install util-linux tools to run tests in separated network namespace) endif @./tools/generate_nlmsg @mkdir -p $(RESULTS_DIR) - + @for d in $(TESTS_DIR); do \ mkdir -p $(RESULTS_DIR)/$$d; \ done - + @if [ "$(KCPATH)" = "/proc/config.gz" ]; then \ gunzip -c $(KCPATH) >$(KENVFN); \ elif [ "$(KCPATH)" != "" ]; then \