Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp149660ybh; Tue, 14 Jul 2020 21:08:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzimuxZnF2RULs8f+sGpIChnQV7byikTXwXgkDMWGpZey5pn6/XiF6NZZVSZkbk9JPmecCN X-Received: by 2002:aa7:c31a:: with SMTP id l26mr7399658edq.61.1594786104814; Tue, 14 Jul 2020 21:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594786104; cv=none; d=google.com; s=arc-20160816; b=uquVizRHUWy2hnFC86PXeYMf+FWtx/NIXy6ksRwxU5BtPv6vD9udwpbi6YhJuS73ER 6qo5o/q9iiGCgJG6OFR2O8jabsRzqtGs9WFSphekflrr40FSKWDiC8tavdJr2b5m3Tg8 A8Njg50hyXcVjBMCYZhaYQJnw+eBncM3ZFyK+GWMVc9PB6xHE0BpxXr5DOdgGhG48xXm zmiwJ7iNBhpf1+VWstjdV8wvlEDpkqnzFJsr/r/3axb5S8SbJW1Nl5njwFOKbueI0QUO mMcn2haZu5SjNVmSmqGY3FDisp2pTMvaglMHhCdIA5WXitMRy5vk2zWk/gfWO/n9zlSo TajQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=43tn4SCdUQPE+RtWwrBeE6OYYiz+sN9YblVYLrd3cSI=; b=A6EZE3y2z8nUbT4ZBexqnrJRgM2b+EKPDJSnJ/tCuk9/SqygcXbsrxQrLrHHV+9Ilj gmiAjTVJzxIawsOo87cZUaH3WXy3S7M8Qgs1qnzlYantMiIYIW7koNz7FUmcUDeM2Q2L Ty+xRGhuEK8vY/pOPu+WZyvJ9oZvyL6SIoFtkq47+14h6Im81QnofB75KKMnxuRQ8LPQ k1x6nB61HmORLXousatIBJs436+Ay/xAxJ5Tl544N5jIxGh+zzwIJqY4gQPdUInsjZ93 QZpnWj6r8wpwi0uAEozx+RsoaJZsRtOHDZtvNuaPA7ZSu1/1t6Y2Ph9arb/O8RsWMwbZ M7Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=r83DgT29; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o21si502980edv.451.2020.07.14.21.08.02; Tue, 14 Jul 2020 21:08:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=r83DgT29; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728050AbgGODL2 (ORCPT + 99 others); Tue, 14 Jul 2020 23:11:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726769AbgGODL1 (ORCPT ); Tue, 14 Jul 2020 23:11:27 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E62FC061794 for ; Tue, 14 Jul 2020 20:11:27 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id d27so627284qtg.4 for ; Tue, 14 Jul 2020 20:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=massaru-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=43tn4SCdUQPE+RtWwrBeE6OYYiz+sN9YblVYLrd3cSI=; b=r83DgT29XWRfj/E7kT6DQYKdCfnI9xI/0edg/bbFkV//C89wvNTd4nIGL/BjrPYIWC tvFQi2YYH4+gOuGYcFnVDui7pyAX77p2sV/fCKLn0+80JLmbDB8KYA2MYENTAN4mBcr3 m3/1fScIkCh8vnuV2VqtumrP7DHivlE2HhB0zm+0VMZuQVgv1yXJuJ9hyZXZaU9bHYpq HHpIxZm3rtMT/yRX7tvMg7/N2m9ffCf6LD2oepP8UHxOcpq4DamHysbUISrm7oGUbKHc GnJEe4LUjs6ErJS+KTAhjR+Qer6Dsx/R1xoehGnGR1d0rOpqP4FUq8ZAqwSvPvsg1JjS TsDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=43tn4SCdUQPE+RtWwrBeE6OYYiz+sN9YblVYLrd3cSI=; b=ZP38ww+fLWro1xbEyIPc5E0GaCAEE8TGaw/oVcNCxlxY2DVDhen71qfIkHBwLHOYyk JRpHuMg/CUIquVnLzohYIedaQh2zigo1j3PlLfCZPEmfNjgRuVTpMkg7rpiUAiG2mhtq KM5jy5292SzTZCK98niTaWHtncJWYEHG6oRsHWAGEWMKoIJXOE2+d3QW1m86rvFWcOMY 9aMDYipqyzfjf30VCwkY62UAhTz9omHMXMI3s8Cs9hEoMI4lILBtnTdnEh6zspyL6RuG 7dzfIrAJ4GuFTNWbn9vPY2QrRGLXVoAvCTArVFEEuHO1ex6T1q2Ynb8uEeWrYIYbm8gn jqtA== X-Gm-Message-State: AOAM531WTN4/VhKPbzZAzfE5CXh39zypB+/uAzjDoyLZhW7fNjFjnVkb qhsH3tSdtbhHaiXpDq4GlkymoQ== X-Received: by 2002:ac8:40cd:: with SMTP id f13mr7767036qtm.373.1594782686419; Tue, 14 Jul 2020 20:11:26 -0700 (PDT) Received: from bbking.lan ([2804:14c:4a5:36c::cd2]) by smtp.gmail.com with ESMTPSA id x29sm1269229qtx.74.2020.07.14.20.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jul 2020 20:11:24 -0700 (PDT) From: Vitor Massaru Iha To: kunit-dev@googlegroups.com Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, brendanhiggins@google.com, keescook@chromium.org, davidgow@google.com, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: [RFC 0/3] kunit: add support to use modules Date: Wed, 15 Jul 2020 00:11:17 -0300 Message-Id: <20200715031120.1002016-1-vitor@massaru.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently, KUnit does not allow the use of tests as a module. This prevents the implementation of tests that require userspace. This patchset makes this possible by introducing the use of the root filesystem in KUnit. And it allows the use of tests that can be compiled as a module Vitor Massaru Iha (3): kunit: tool: Add support root filesystem in kunit-tool lib: Allows to borrow mm in userspace on KUnit lib: Convert test_user_copy to KUnit test include/kunit/test.h | 1 + lib/Kconfig.debug | 17 ++ lib/Makefile | 2 +- lib/kunit/try-catch.c | 15 +- lib/{test_user_copy.c => user_copy_kunit.c} | 196 +++++++++----------- tools/testing/kunit/kunit.py | 37 +++- tools/testing/kunit/kunit_kernel.py | 105 +++++++++-- 7 files changed, 238 insertions(+), 135 deletions(-) rename lib/{test_user_copy.c => user_copy_kunit.c} (55%) base-commit: 725aca9585956676687c4cb803e88f770b0df2b2 prerequisite-patch-id: 582b6d9d28ce4b71628890ec832df6522ca68de0 -- 2.26.2