snabb icon indicating copy to clipboard operation
snabb copied to clipboard

How to run selftests ?

Open mingodad opened this issue 6 years ago • 3 comments

Hello ! I've just finished the first release of snabb-ljs https://github.com/mingodad/snabb-ljs for testing purposes and I could not find if there is a way to execute all the selftests to check that my conversion is working as expected.

What it mean ? Basically it's the snabb based on luajit converted to ljsjit a lua with C/C++/Java/Javascript syntax see https://github.com/mingodad/ljs .

Also I do not have any equipment to test it, if someone could try it and report any problems I would appreciate the help.

Cheers !

mingodad avatar Dec 19 '18 11:12 mingodad

To run all selftests, simply type:

$ sudo make test

Tests that depend on hardware (NICs) will be skipped.

dpino avatar Dec 19 '18 11:12 dpino

Hello ! Thanks for reply ! There isn't any way to test without root ? Isn't it a bit scary ? Cheers !

mingodad avatar Dec 19 '18 11:12 mingodad

Hello again ! Now snabb-ljs passes all selftests that snabb pass on my machine. Thanks !

mingodad avatar Dec 21 '18 09:12 mingodad