README 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Kamailio Test Unit
  2. ==================
  3. This directory contains some small "smoke tests", that should assure that
  4. basic functionality of the server work as required. This tests should consists
  5. of one shell script and a config file if needed. They should not need much time
  6. for execution, to allow the run of the complete test suite in a few seconds.
  7. All test scripts must be self-contained, should not have external dependencies
  8. and must clean up after they are run. The second line in each scripts should
  9. contain a small comment that describe the task of the test, it should not
  10. output any messages on successful runs.
  11. This tests should (in the current state) only run by developers who know
  12. what they do. They could delete your database, produce core dumps that fill
  13. your harddisk or do other nasty things..
  14. Dependencies
  15. ------------
  16. External tools needed by some test units:
  17. - SIPP (http://sipp.sourceforge.net)
  18. - SIPSAK (https://github.com/nils-ohlmeier/sipsak)
  19. Usage
  20. -----
  21. To execute all unit tests, run:
  22. make all
  23. To run a specific unit test, run:
  24. make run UNIT=scripname
  25. Scriptname is the name of shell file to execute, for example:
  26. make run UNIT=1.sh