-
Notifications
You must be signed in to change notification settings - Fork 137
Running tests from Linux Test Project
Will Jhun edited this page Oct 6, 2020
·
4 revisions
The Linux Test Project testsuite contains a collection of tools for testing the Linux kernel and related features.
There are many tests for various syscalls that we can utilize for testing nanos.
$ git clone https://github.com/linux-test-project/ltp.git
$ cd ltp
$ make autotools
$ ./configure
If you need to execute a single test you actually does not need to compile whole LTP, if you want to run a syscall testcase following should work.
$ cd testcases/kernel/syscalls/foo
$ make
$ PATH=$PATH:$PWD ./foo01
More detailed instructions are at LTP project page
LTP syscalls tests are executable binaries, so running them in Nanos is straightforward, like this:
cd testcases/kernel/syscalls/futex
ops run futex_wait01
Update 10-06-2020: All the following tests fail when attempting to use fork(). Investigate whether it is possible to modify the test to use pthreads instead.
Legend
- TPASS - test passed
- TBROK - test setup failed
- TFAIL - test failed
Testcase | Status | Failure reason / comments |
---|---|---|
futex_wait01 | TBROK |
fork(): ENOSYS (38) - Uses fork - revise test to use pthreads |
futex_wait02 | TBROK | " |
futex_wait03 | TBROK | " |
futex_wait04 | TBROK | " |
futex_wait05 | TBROK | " |
futex_wait_bitset01 | TBROK | " |
futex_wait_bitset02 | TBROK | " |
futex_wake01 | TBROK | " |
futex_wake02 | TBROK | " |
futex_wake04 | TBROK | " |