Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

olds testing and stuff

bui edited this page Jul 15, 2016 · 1 revision

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
  1. It will give you a pass/fail result.
  2. 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!

Clone this wiki locally