nuta / kerla

A new operating system kernel with Linux binary compatibility written in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduce integration tests

nuta opened this issue · comments

Run a testing program on CI to check the functionality.

Closed by d156cb2

It's not entirely clear to me how these tests work. Do they only check the exit status of executed programs?

For now, yes. I think we can improve integration tests by, for example, checking if stdout/stderr are identical with the execution on Linux.

I agree, that sounds like a good idea. Is it ok if I start working on that task? I didn't advance much on the lseek implementation, but I wanted to have a proper way to test it before.

Of course!

JFYI, integration tests are bundled in the initramfs image here:

ADD integration_tests /integration_tests

In addition to existing shell script based integration tests, I think it would be helpful to add a simple Rust binary to test system calls.