naxsi

Unit Tests

Naxsi comes with unit tests. This is very useful for people who wants to modify naxsi, build packages, test it on exotic setups, … We try to keep our code coverage as high as possible.

This is how you can run them:

  1. Untar nginx code source in /tmp/nginx/.
  2. Setup naxsi for unit testing (from naxsi_src).
    • make re will compile naxsi to run from /tmp/
    • make deploy will deploy a minimal naxsi in /tmp/naxsi_ut/ (running on high port)
    • make test will run the unit tests
  3. It will give you a pass/fail result.
  4. Look at the resulting /tmp/naxsicov.html/ to get a code coverage report.

If you’re too lazy to run them, no worries, travis-ci is running them for every pull-request that you’ll submit!

Coverity

Coverity is cool enough to allow open-source projects to use their cloud solutions for free. We do submit builds for every release. If you want to have access to detail results (ie. doing security assessment on naxsi), get in touch with us!