Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933423AbdCaNBG (ORCPT ); Fri, 31 Mar 2017 09:01:06 -0400 Received: from mail-lf0-f49.google.com ([209.85.215.49]:33494 "EHLO mail-lf0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753049AbdCaNAJ (ORCPT ); Fri, 31 Mar 2017 09:00:09 -0400 From: Corentin Labbe To: davem@davemloft.net, shuah@kernel.org Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, Corentin Labbe Subject: [PATCH] selftests: add a generic testsuite for ethernet device Date: Fri, 31 Mar 2017 14:57:51 +0200 Message-Id: <20170331125752.20074-1-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.10.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 734 Lines: 26 Hello My original intent was to add network test to the kernelci project. Since they use kselftests, they forwarded me to this. This patch add a basic network test suite which do: - bring up netdev - change mac address - try some ethtool commands - bring down netdev The test is non disruptive, so that an already used network interface will not be modified (mac/IP address for example). Regards Corentin Labbe (1): selftests: add a generic testsuite for ethernet device tools/testing/selftests/net/Makefile | 2 +- tools/testing/selftests/net/netdevice.sh | 185 +++++++++++++++++++++++++++++++ 2 files changed, 186 insertions(+), 1 deletion(-) create mode 100755 tools/testing/selftests/net/netdevice.sh -- 2.10.2