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 Installation: ------------- You can install the scripts in other place but you have to modify BASE_DIR on run_test.sh and scenarios/check.sh scripts. #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 Usage: ------ PROFILE: "CE" the default "PRO" #bash /usr/local/src/kamailio-config-tests/run_tests.sh [-p PROFILE ] This will create: - /usr/local/src/kamailio-config-tests/log with a directory per test with: - kamailio.log - parsed messages - sipp error logs #bash /usr/local/src/kamailio-config-tests/get_result.sh [-p PROFILE ] [-g] This will create: - /usr/local/src/kamailio-config-tests/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 this will run the test and the result taps 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