selftests: Add nci suite

This is the NCI test suite. It tests the NFC/NCI module using virtual NCI
device. Test cases consist of making the virtual NCI device on/off and
controlling the device's polling for NCI1.0 and NCI2.0 version.

Signed-off-by: Bongsu Jeon <bongsu.jeon@samsung.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Bongsu Jeon
2021-01-29 18:03:33 -08:00
committed by Jakub Kicinski
parent e624e6c3e7
commit f595cf1242
5 changed files with 617 additions and 0 deletions
+8
View File
@@ -12540,6 +12540,14 @@ F: include/net/nfc/
F: include/uapi/linux/nfc.h
F: net/nfc/
NFC VIRTUAL NCI DEVICE DRIVER
M: Bongsu Jeon <bongsu.jeon@samsung.com>
L: netdev@vger.kernel.org
L: linux-nfc@lists.01.org (moderated for non-subscribers)
S: Supported
F: drivers/nfc/virtual_ncidev.c
F: tools/testing/selftests/nci/
NFS, SUNRPC, AND LOCKD CLIENTS
M: Trond Myklebust <trond.myklebust@hammerspace.com>
M: Anna Schumaker <anna.schumaker@netapp.com>
+1
View File
@@ -34,6 +34,7 @@ TARGETS += memory-hotplug
TARGETS += mincore
TARGETS += mount
TARGETS += mqueue
TARGETS += nci
TARGETS += net
TARGETS += net/forwarding
TARGETS += net/mptcp
+6
View File
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
CFLAGS += -Wl,-no-as-needed -Wall
LDFLAGS += -lpthread
TEST_GEN_PROGS := nci_dev
include ../lib.mk
+3
View File
@@ -0,0 +1,3 @@
CONFIG_NFC=y
CONFIG_NFC_NCI=y
CONFIG_NFC_VIRTUAL_NCI=y
File diff suppressed because it is too large Load Diff