From patchwork Fri Aug 16 14:54:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyril Hrubis X-Patchwork-Id: 1148275 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=suse.cz Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4695v40m9gz9sNC for ; Sat, 17 Aug 2019 00:54:21 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 1F28E3C1D07 for ; Fri, 16 Aug 2019 16:54:16 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [IPv6:2001:4b78:1:20::6]) by picard.linux.it (Postfix) with ESMTP id 958AF3C1823 for ; Fri, 16 Aug 2019 16:54:14 +0200 (CEST) Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 9C8931401AAD for ; Fri, 16 Aug 2019 16:54:13 +0200 (CEST) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 2BEDBAEA4 for ; Fri, 16 Aug 2019 14:54:12 +0000 (UTC) From: Cyril Hrubis To: ltp@lists.linux.it Date: Fri, 16 Aug 2019 16:54:05 +0200 Message-Id: <20190816145410.8681-1-chrubis@suse.cz> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.99.2 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.2 required=7.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-6.smtp.seeweb.it Subject: [LTP] [PATCH v1 0/5] Add basic test for uevent netlink socket X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" This patchset adds three basic test for uevent netlink socket. Cyril Hrubis (5): lib/tst_device: Export more functions. kernel/uevent: Add uevent01 kernel/uevent: Add uevent02 libs/libltpuinput: Add uinput library. kernel/uevent: Add uevent03 include/tst_device.h | 7 ++ include/tst_uinput.h | 31 +++++ lib/tst_device.c | 8 +- libs/libltpuinput/Makefile | 12 ++ libs/libltpuinput/tst_uinput.c | 93 +++++++++++++++ runtest/uevent | 3 + scenario_groups/default | 1 + testcases/kernel/uevents/.gitignore | 3 + testcases/kernel/uevents/Makefile | 10 ++ testcases/kernel/uevents/uevent.h | 176 ++++++++++++++++++++++++++++ testcases/kernel/uevents/uevent01.c | 90 ++++++++++++++ testcases/kernel/uevents/uevent02.c | 141 ++++++++++++++++++++++ testcases/kernel/uevents/uevent03.c | 98 ++++++++++++++++ 13 files changed, 669 insertions(+), 4 deletions(-) create mode 100644 include/tst_uinput.h create mode 100644 libs/libltpuinput/Makefile create mode 100644 libs/libltpuinput/tst_uinput.c create mode 100644 runtest/uevent create mode 100644 testcases/kernel/uevents/.gitignore create mode 100644 testcases/kernel/uevents/Makefile create mode 100644 testcases/kernel/uevents/uevent.h create mode 100644 testcases/kernel/uevents/uevent01.c create mode 100644 testcases/kernel/uevents/uevent02.c create mode 100644 testcases/kernel/uevents/uevent03.c