From patchwork Wed Feb 7 09:42:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Abeni X-Patchwork-Id: 13548266 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D53A25566 for ; Wed, 7 Feb 2024 09:43:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707298990; cv=none; b=BWbc4+J1yh9nDWkLh/hU+LuHW+604TCkI9P0wKugleL/dvgStNGHY+thjC3BfpFjlh2tpDplqcLJvt+r7tvN+RxP40tRGL8XR4kwteS2ESo2aK4nwoi+i6LBj1M1hZAMNlsQvweiaSa4WUPXWF60n/7RTW5ajvcJSLNu5szhE88= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707298990; c=relaxed/simple; bh=Un9dSswqhy5BvcgN+CICgEU+zyHY4nOPH1heqk252iM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Rjlt1xzIiYSNErC87xQqg90xU/m4VsTRtmlGoazBxscYmOclX54vCB5VsyVPv8PUuIqVWU9V4kZ2EWAtqYt3lU96nsH6M65XdhEUhtZCb62e6LRozDnnbzzlhR8OXCFuUZXeYG0uJIGavCOlfsnDsaI266WT+IpAg+SdGrSYxxY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=gzZuLRIk; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gzZuLRIk" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707298987; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=62ePsh182eryxOt7CDUqfSF+zfi9BMgTVxVNtxqYx1E=; b=gzZuLRIkVPjTkzG7CkhaPsijtY1hbZwuMLevz98L2WLzEOYRVfw+W6voD5v2itvVsTGCa/ sb1GIRxC9j0oWwbD905gMXsw9G7ogq0zt7qj/Ss0r9Ko3xOuv187cBp7k/T5Xx6J2QeGfE qDLOtcQ4SGbCfOPhEEkaBF+EIiGrp3w= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-632-magBBZuvNg2-gRq0st-rEA-1; Wed, 07 Feb 2024 04:43:03 -0500 X-MC-Unique: magBBZuvNg2-gRq0st-rEA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4F76A8493F1; Wed, 7 Feb 2024 09:43:01 +0000 (UTC) Received: from gerbillo.redhat.com (unknown [10.45.224.200]) by smtp.corp.redhat.com (Postfix) with ESMTP id 041E22026D06; Wed, 7 Feb 2024 09:42:59 +0000 (UTC) From: Paolo Abeni To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Shuah Khan , linux-kselftest@vger.kernel.org Subject: [PATCH net-next] selftests: net: include forwarding lib Date: Wed, 7 Feb 2024 10:42:45 +0100 Message-ID: Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 The altnames test uses the forwarding/lib.sh and that dependency currently causes failures when running the test after install: make -C tools/testing/selftests/ TARGETS=net install ./tools/testing/selftests/kselftest_install/run_kselftest.sh \ -t net:altnames.sh # ... # ./altnames.sh: line 8: ./forwarding/lib.sh: No such file or directory # RTNETLINK answers: Operation not permitted # ./altnames.sh: line 73: tests_run: command not found # ./altnames.sh: line 65: pre_cleanup: command not found Address the issue leveraging the TEST_INCLUDES infrastructure provided by commit 2a0683be5b4c ("selftests: Introduce Makefile variable to list shared bash scripts") Signed-off-by: Paolo Abeni --- tools/testing/selftests/net/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/net/Makefile b/tools/testing/selftests/net/Makefile index 211753756bde..7b6918d5f4af 100644 --- a/tools/testing/selftests/net/Makefile +++ b/tools/testing/selftests/net/Makefile @@ -97,6 +97,8 @@ TEST_PROGS += vlan_hw_filter.sh TEST_FILES := settings TEST_FILES += in_netns.sh lib.sh net_helper.sh setup_loopback.sh setup_veth.sh +TEST_INCLUDES := forwarding/lib.sh + include ../lib.mk $(OUTPUT)/reuseport_bpf_numa: LDLIBS += -lnuma