~nfraprado

São Paulo, Brazil

https://nfraprado.net

~nfraprado/test

Last active 8 months ago
View more

Recent activity

DRM KUnit hackathon 12 days ago

From Nícolas F. R. A. Prado to ~lkcamp/discussion

Hello,

We belong to a student group, LKCAMP [1], which is focused on sharing kernel and
free software development knowledge and mentoring newcomers to become
contributors to these projects.

As part of our efforts, we'll be organizing a hackathon to convert the drm
selftests in drivers/gpu/drm/selftests/ (and possibly the ones in
drivers/dma-buf too) to the KUnit framework. It will take place on October 30.

So please expect to receive some patches from our mentees on that date. It
probably won't be a big volume (experience tells it'll be around half a dozen
patches). We'll also make sure to do an internal review beforehand to catch
common first-timer mistakes and teach the basics.

Re: [PATCH v2] lib: use of kunit in test_parman.c a month ago

From Nícolas F. R. A. Prado to ~lkcamp/patches

Hello,

Any update on the review of this patch? Jiri Pirko?

Thanks,
Nícolas

On Wed, Jul 28, 2021 at 02:31:07PM +0800, David Gow wrote:
> On Wed, Jul 28, 2021 at 12:55 PM José Aquiles Guedes de Rezende
> <jjoseaquiless@gmail.com> wrote:
> >
> > Convert the parman test module to use the KUnit test framework.
> > This makes the test clearer by leveraging KUnit's assertion macros
> > and test case definitions,as well as helps standardize on a testing framework.

Re: [PATCH v2] lib: use of kunit in test_parman.c 2 months ago

From Nícolas F. R. A. Prado to ~lkcamp/patches

Oi Aquiles,

respondendo em português mesmo e só internamente na nossa lista de emails.

Eu vi que você já recebeu vários reviews e até já mandou esse v2, bem legal! :D

Um detalhe é que você não colocou a lista do KUnit em cópia:
kunit-dev@googlegroups.com

Não precisa reenviar só por isso, claro, só estou falando pra você lembrar de
adicionar na v3 caso pedirem pra alterar mais alguma coisa :).

Outra coisa, essas tags que os revisores colocam, quando você reenvia uma nova
versão do patch, você tem que adicionar no seu commit, depois dos

Re: [PATCH v4] lib: use of kunit in test_parman.c 2 months ago

From Nícolas F. R. A. Prado to ~lkcamp/patches

Hi Aquiles,

On Tue, Jul 20, 2021 at 08:16:15PM -0300, José Aquiles Guedes de Rezende wrote:
> Convert the parman test module to use the KUnit test framework.
> This makes thetest clearer by leveraging KUnit's assertion macros
> and test case definitions,as well as helps standardize on a testing framework.
> 
> Co-developed-by: Matheus Henrique de Souza Silva <matheushenriquedesouzasilva@protonmail.com>
> Signed-off-by: Matheus Henrique de Souza Silva <matheushenriquedesouzasilva@protonmail.com>
> Signed-off-by: José Aquiles Guedes de Rezende <jjoseaquiless@gmail.com>
> ---
> 
> Changes in v2:
> - Format according checkpatch.pl

Re: [PATCH v3] lib: use of kunit in test_parman.c 3 months ago

From Nícolas F. R. A. Prado to ~lkcamp/patches

Hi Aquiles,

On Fri, Jul 16, 2021 at 10:39:57PM -0300, José Aquiles Guedes de Rezende wrote:
> Convert the parman test module to use the KUnit test framework.
> This makes thetest clearer by leveraging KUnit's assertion macros
> and test case definitions,as well as helps standardize on a testing framework.
> 
> Co-developed-by: Matheus Henrique de Souza Silva <matheushenriquedesouzasilva@protonmail.com>
> Signed-off-by: Matheus Henrique de Souza Silva <matheushenriquedesouzasilva@protonmail.com>
> Signed-off-by: José Aquiles Guedes de Rezende <jjoseaquiless@gmail.com>
> ---
> 
> Changes in v2:
> - Format according checkpatch.pl

Re: [PATCH v2] lib: use of kunit in test_parman.c 3 months ago

From Nícolas F. R. A. Prado to ~lkcamp/patches

Hi again

forgot to add something...

On Tue, Jul 13, 2021 at 11:25:45PM -0300, José Aquiles Guedes de Rezende wrote:
> test_parman.c is an unit test for the parman.c
> using debug messages and returning errors.
> Convert the test to use KUnit framework.
> Use KUnit features like memory allocation.
> In KUnit there is no need to fully compile
> the kernel or use virtual machine to run the
> tests, just run the kunit.py.

The commit message should only talk about the change you did and why it is a

Re: [PATCH v2] lib: use of kunit in test_parman.c 3 months ago

From Nícolas F. R. A. Prado to ~lkcamp/patches

Hi Aquiles,

By the way, just in case you weren't able to run your test, I managed to run it
by

1. adding the needed configs for your test in the .kunit/.kunitconfig file:

	CONFIG_COMPILE_TEST=y
	CONFIG_PARMAN=y
	CONFIG_TEST_PARMAN=y

2. using the x86_64 architecture instead of the default (UML):

	tools/testing/kunit/kunit.py run --arch x86_64

Re: [PATCH v2] Hackaton KUnit 3 months ago

From Nícolas F. R. A. Prado to ~lkcamp/patches

Oi Enzo,

On Wed, Jul 07, 2021 at 08:59:09PM -0300, Enzo Ferreira wrote:
> Adiciona o teste exemplo de KUnit
> 
> Signed-off-by: Enzo Ferreira <ferreiraenzoa@gmail.com>
> 

Essa linha em branco não é necessária.

> ---

Seria legal adicionar um "changelog" do que você mudou entre a versão 1 e a 2
agora. Ajuda quem está revisando a saber o que mudou. Se quiser uma ideia de

Hackathon de KUnit no LKCAMP 3 months ago

From Nícolas F. R. A. Prado to ~lkcamp/discussion

Olá,

Com base nos dias de disponibilidade colocados no forms, decidimos
os seguintes dias de evento:
    
    - 3 de julho: Ramp-Up de Kernel Linux
    - 10 de julho: Hackathon KUnit
    
Horário (ambos os dias): 9-12h, 13-17h (pausa flexível)

O Ramp-Up será focado em quem tem pouca/nenhuma experiência com o Kernel Linux.
Será coberto o básico da configuração e compilação do kernel, além de como
enviar um patch para lista de email com o git.

[RFC PATCH 2/2] XArray: Remove literal markup from known constants 4 months ago

From Nícolas F. R. A. Prado to ~lkcamp/patches

Remove literal markup from known constants, instead relying on
automarkup.py to make them into literals.

Suggested-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Nícolas F. R. A. Prado <n@nfraprado.net>
---
 Documentation/core-api/xarray.rst | 48 +++++++++++++++----------------
 1 file changed, 24 insertions(+), 24 deletions(-)

diff --git a/Documentation/core-api/xarray.rst b/Documentation/core-api/xarray.rst
index a137a0e6d068..6e608e2e8e5b 100644
--- a/Documentation/core-api/xarray.rst
+++ b/Documentation/core-api/xarray.rst
@@ -22,7 +22,7 @@ The XArray implementation is efficient when the indices used are densely
[message trimmed]