You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Victor Seva c0d83bd773
Show exit status on output
13 years ago
bin bin/restart_log.sh: Use the new kamailio RPC command to reset the msgid 13 years ago
debian debian/install: added bench.sh to the Debian package 13 years ago
scenarios xavp changed?? 13 years ago
.gitignore ignore generated files 13 years ago
README README: update documentation. 13 years ago
bench.sh Show exit status on output 13 years ago
get_results.sh Show exit status on output 13 years ago
run_tests.sh Show exit status on output 13 years ago

README

Kamailio configuration tests
----------------------------

Requeriments:
-------------
 - A working NGCP
 - sip-tester. sipp with ssl enabled ( needed for auth ).
   We provide a version backported to wheezy
 - python-yaml
 - libgraphviz-perl
 - libtemplate-perl
 - libtext-csv-perl
 - ngcp-ossbss-clients-perl
 - parallel
 - tcpdump

Manual Installation:
-------------
  You can install the scripts in other place but you have
  to modify BASE_DIR environment variable.

  #cd /usr/local/src
  #git clone git@git.mgm.sipwise.com:kamailio-config-tests
  #apt-get install python-yaml sip-tester \
                   libgraphviz-perl libtemplate-perl libtext-csv-perl \
                   ngcp-ossbss-clients-perl parallel tcpdump

Debian Deb Installation:
------------------------

In a ce-trunk installation:

# aptitude install kamailio-config-tests

In a ce-3.0 installation:

- Add kamailio-config-tests and sip-tester repositories:

 #cat /etc/apt/sources.list.d/kamailio-config-test.list
 deb http://jenkins.mgm.sipwise.com/debian kamailio-config-tests_vseva_3.0 main
 deb http://jenkins.mgm.sipwise.com/debian sip-tester-wheezy main

 #cat /etc/apt/preferences.d/kamailio-config-tests
 Package: *
 Pin: origin jenkins.mgm.sipwise.com
 Pin-Priority: 990

 # aptitude install kamailio-config-tests

Usage:
------
  # cd /usr/local/src/kamailio-config-tests

  If you are using the git version and not in /usr/local/src/kamailio-config-tests
  you need to set BASE_DIR environment variable accordingly:
  # export BASE_DIR=`pwd`
  This is not needed if you are using the Debian packaged version.

  PROFILE: "CE" the default
           "PRO"
  #bash ./run_tests.sh [-p PROFILE ]

  This will create:
    - $BASE_DIR/log
      with a directory per test with:
      - kamailio.log
      - parsed messages
      - sipp error logs

  #bash ./get_result.sh [-p PROFILE ] [-g]

  This will create:
    - $BASE_DIR/result
      with a directory per test with:
      - a tap file ( test results )
      - a png file ( routes flow ) If you use -g option

 If you want to run test manually just exec this onces:
  #./bin/config_debug.pl on
  #ngcpcfg apply
 and run the check that you want:
  #./bin/check.sh <checkname>
 this will run the test and the result taps
 or run all the tests as many times you want with:
  #./bin/bench.sh $NUM

Development:
------------

Every test has to be located at the scenarios directory. It must include:

 - scenario.yml
 - XXXX_test.yml.tt2
   XXXX indicates the number of kamailio parsed msg XXXX.yml to test
 - sipp_scenarioXX.xml

And can optionally include:
 - sipp_scenario_responderXX.xml
 - prefs.yml
 - callforward.yml
 - speeddial.yml
 - peer.yml
--
Victor Seva <vseva@sipwise.com>