From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 AF4B11C6BE for ; Tue, 22 Apr 2025 12:03:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745323397; cv=none; b=n9qFZDWmCysxZUKVfu59r5TCookeJ2ALMl6SghbAy0lBNtksjW+Q5qusNPDgIA1BbmWJa2zmkACJt44URh5EFysA+PU4ES97ZwwY/wJ+lkpIgFmbb11+pB3rt/nj+04d7FH7RUeth94w50v8BBXXHYbherek2pyIG4qy1l1oUqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745323397; c=relaxed/simple; bh=AoQIiPuxskMY/m8ZOL79dvqqFFwceArsoIR8xd7TvvU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ePTPNFp5l8rh85pyiTciQ4bTLTLNSI7qDkDfyTDrHF1ihkzpFIqnv7riphHORhJnhFi/JRSHyuOXfmLkIcLgcGevH1gfrR52/7LUbqJCT9OjShYfjWJm94bdqotb0Qgr3p9/c02drSoIvQgbQWRPUQ306CfPTiXWijcgsBHCY9U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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=CMt3ZDj8; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine 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="CMt3ZDj8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1745323394; 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=HXYOy5AqnIMDIJuzIwJ2Rz2vEeiO43DThz18Up7zmHQ=; b=CMt3ZDj823JtppXqA3mM/btvgSS76ky9dKlNj248PsO+Cl3VYeHaRjLynEtacA7kvZAZZp GMIMxqejH3m8ppQ45gKhlirEHC2b3JTDJgSIH1LFE9hfir25ponW08cLx28HnOtuNu7IHo 0Ilj4JXQsyaM22Kd+4wPJJtXy0muS5c= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-475-WsuSZuUcNCmPoLslO--bNA-1; Tue, 22 Apr 2025 08:03:11 -0400 X-MC-Unique: WsuSZuUcNCmPoLslO--bNA-1 X-Mimecast-MFC-AGG-ID: WsuSZuUcNCmPoLslO--bNA_1745323389 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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 mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 59A01195609F; Tue, 22 Apr 2025 12:03:09 +0000 (UTC) Received: from thinkpad.redhat.com (unknown [10.45.226.102]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 5BBB5180045C; Tue, 22 Apr 2025 12:03:05 +0000 (UTC) From: Felix Maurer To: socketcan@hartkopp.net, mkl@pengutronix.de Cc: shuah@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, dcaratti@redhat.com, fstornio@redhat.com Subject: [PATCH 0/4] selftest: can: Start importing selftests from can-tests Date: Tue, 22 Apr 2025 14:02:33 +0200 Message-ID: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 This is the initial import of a CAN selftest from can-tests[1] into the tree. For now, it is just a single test but when agreed on the structure, we intend to import more tests from can-tests and add additional test cases. The goal of moving the CAN selftests into the tree is to align the tests more closely with the kernel, improve testing of CAN in general, and to simplify running the tests automatically in the various kernel CI systems. I have cc'ed netdev and its reviewers and maintainers to make sure they are okay with the location of the tests and the changes to the paths in MAINTAINERS. The changes should be merged through linux-can-next and subsequent changes will not go to netdev anymore. [1]: https://github.com/linux-can/can-tests Felix Maurer (4): selftests: can: Import tst-filter from can-tests selftests: can: use kselftest harness in test_raw_filter selftests: can: Use fixtures in test_raw_filter selftests: can: Document test_raw_filter test cases MAINTAINERS | 2 + tools/testing/selftests/Makefile | 1 + tools/testing/selftests/net/can/.gitignore | 2 + tools/testing/selftests/net/can/Makefile | 11 + .../selftests/net/can/test_raw_filter.c | 338 ++++++++++++++++++ .../selftests/net/can/test_raw_filter.sh | 37 ++ 6 files changed, 391 insertions(+) create mode 100644 tools/testing/selftests/net/can/.gitignore create mode 100644 tools/testing/selftests/net/can/Makefile create mode 100644 tools/testing/selftests/net/can/test_raw_filter.c create mode 100755 tools/testing/selftests/net/can/test_raw_filter.sh -- 2.49.0