From patchwork Fri Nov 15 12:42:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jiri Benc X-Patchwork-Id: 1195616 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) 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=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="K6hiAh+v"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47DygP4v5Gz9s4Y for ; Fri, 15 Nov 2019 23:42:57 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727406AbfKOMmz (ORCPT ); Fri, 15 Nov 2019 07:42:55 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:36084 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727272AbfKOMmz (ORCPT ); Fri, 15 Nov 2019 07:42:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573821774; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VKSgyufm9lCSTbG6iAHD70fQpWTZJML7/dJPhf6V5lk=; b=K6hiAh+vHui8SvInBZoT5VK5urNhg6K3VJqmk5XH4U9Zl1/ALGlDVTIFOuTFyp+3EsF5q5 W5G4C/RNv78PsDD3YBMgcRI1+S+r12n2nt94PWDtholjQi4zkLesIykgyK3OMA1l0Ie1xH SPwE4LDtcs5YAfe+nnNn1OjpgKv9H6s= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-79-vYiBxy1BNMmK6MDubHF4dg-1; Fri, 15 Nov 2019 07:42:53 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C9D2E1802CE3; Fri, 15 Nov 2019 12:42:51 +0000 (UTC) Received: from griffin.upir.cz (unknown [10.40.206.11]) by smtp.corp.redhat.com (Postfix) with ESMTP id E860E5C548; Fri, 15 Nov 2019 12:42:50 +0000 (UTC) From: Jiri Benc To: bpf@vger.kernel.org, netdev@vger.kernel.org Cc: Alan Maguire Subject: [PATCH bpf] selftests: bpf: xdping is not meant to be run standalone Date: Fri, 15 Nov 2019 13:42:32 +0100 Message-Id: <4365c81198f62521344c2215909634407184387e.1573821726.git.jbenc@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-MC-Unique: vYiBxy1BNMmK6MDubHF4dg-1 X-Mimecast-Spam-Score: 0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org The actual test to run is test_xdping.sh, which is already in TEST_PROGS. The xdping program alone is not runnable with 'make run_tests', it immediatelly fails due to missing arguments. Move xdping to TEST_GEN_PROGS_EXTENDED in order to be built but not run. Fixes: cd5385029f1d ("selftests/bpf: measure RTT from xdp using xdping") Cc: Alan Maguire Signed-off-by: Jiri Benc Acked-by: Toke Høiland-Jørgensen Reviewed-by: Alan Maguire --- tools/testing/selftests/bpf/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile index 6889c19a628c..99193a241bc7 100644 --- a/tools/testing/selftests/bpf/Makefile +++ b/tools/testing/selftests/bpf/Makefile @@ -29,7 +29,7 @@ TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test test_sock test_btf test_sockmap get_cgroup_id_user test_socket_cookie \ test_cgroup_storage test_select_reuseport test_section_names \ test_netcnt test_tcpnotify_user test_sock_fields test_sysctl test_hashmap \ - test_btf_dump test_cgroup_attach xdping + test_btf_dump test_cgroup_attach BPF_OBJ_FILES = $(patsubst %.c,%.o, $(notdir $(wildcard progs/*.c))) TEST_GEN_FILES = $(BPF_OBJ_FILES) @@ -82,7 +82,7 @@ TEST_PROGS_EXTENDED := with_addr.sh \ # Compile but not part of 'make run_tests' TEST_GEN_PROGS_EXTENDED = test_libbpf_open test_sock_addr test_skb_cgroup_id_user \ flow_dissector_load test_flow_dissector test_tcp_check_syncookie_user \ - test_lirc_mode2_user + test_lirc_mode2_user xdping include ../lib.mk