From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1501C4360F for ; Thu, 4 Apr 2019 17:38:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A9C6E206DD for ; Thu, 4 Apr 2019 17:38:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729142AbfDDRii (ORCPT ); Thu, 4 Apr 2019 13:38:38 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:48614 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726418AbfDDRih (ORCPT ); Thu, 4 Apr 2019 13:38:37 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 47F9E146DBB94; Thu, 4 Apr 2019 10:38:37 -0700 (PDT) Date: Thu, 04 Apr 2019 10:38:36 -0700 (PDT) Message-Id: <20190404.103836.99803631681096896.davem@davemloft.net> To: lucien.xin@gmail.com Cc: netdev@vger.kernel.org, linux-sctp@vger.kernel.org, marcelo.leitner@gmail.com, nhorman@tuxdriver.com, mcroce@redhat.com, vdronov@redhat.com Subject: Re: [PATCH net-next 0/2] sctp: fully support memory accounting From: David Miller In-Reply-To: References: <20190331.110248.968610750836978684.davem@davemloft.net> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 04 Apr 2019 10:38:37 -0700 (PDT) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Xin Long Date: Thu, 4 Apr 2019 17:45:07 +0800 > We're thinking about adding some sctp tests into selftests, > but these ones are not good to be the first one, I think. > sysctl_sockets_memctl.sh is a multi-host test, even netns can't work for it. You can't set per-netns memory controls appropriately to make the tests work? > Each subcomponent seems to have its own test case in other git repo, > can I ask what kind of tests should I put into kernel selftests in > the future? It would be ideal that we have a decent base set of SCTP tests and then when bug fixes are added, we get a unit test with the fix. I guess a good baseline would be testing basic comminucation between SCTP sockets in different netns, and then adding tests for setting the various socket options and making sure the socket option had the desired effect.