Commit graph

20 commits

Author SHA1 Message Date
Riza Sulistyo
5ac9104514
Expand tab to spaces and remove $Id$ (#3292) 2022-11-22 16:26:54 +07:00
Riza Sulistyo
8e95490e37
Add compile time option to allow multiple Authorization header (#3010) 2022-03-24 13:53:03 +08:00
sauwming
6f197385c7
Miscellaneous fixes (#2969)
* Suppressed various compilation warnings
* Fixed CodeQL warning
* Fixed build warning on Android and Linux
* Fix build warning on Visual Studio
* Update target Android SDK version to 29 (for pjsua2 & app), to avoid gradle error: 'Google Play requires that apps target API level 29 or higher'.
* Add support for Camera2 API to ipjsua android app.
* Fix assertion on Win32 app (MSVC2005) because ICE transport info size is 160 bytes while the allocated buffer is just 144 bytes.
* Enable python unit test on windows for github actions.
* Avoid assertion in pjsua test caused by double calling of pjsua_conf_remove_port()
2022-02-24 14:46:01 +07:00
Nanang Izzuddin
f7ff6b2440 Misc (re #2698): Update python test:
- Retry running pjsua upon failure (due to address-in-use error, happened quite frequently on MacOS in GitHub CI).
- Minor fixes: missing 'self', add slight delay after closing socket to reduce possibility of address-in-use error, make sure sip port is not equal to telnet port.
2021-07-08 17:14:23 +07:00
Nanang Izzuddin
aadc643a01
Fixed assertion in media update of session refresh after previous SDP offer has been rejected (#2627) 2021-02-15 10:18:02 +07:00
Nanang Izzuddin
d65cacddd3
Implement trickle ICE (#2588)
Squash & merge trickle-ice dev branch to master.
2020-12-11 09:40:57 +07:00
Nanang Izzuddin
b1e3966f1e Misc (re #2504): Update pjsua test: registration test sometimes fails when the test script fails to connect fast enough to pjsua via CLI telnet (registration completed before the telnet connection established). 2020-10-24 17:24:50 +07:00
Nanang Izzuddin
b23633707c
More CI works (#2376)
* pjsua-test:
  - Update pjsua-test module call: wait ICE update before checking media
  - Attempt to fix all failed tests by sipp module: changed SIPp port from 6000 to 50070 (port used by recvfrom module)
  - Update call module: confirm codec priority after change, fix DTLS-SRTP expect may race with state CONFIRMED
  - Add timeout check in telnet-ing to pjsua
  - ICE nego may race with call state CONFIRMED, so mod call better just sleep instead of expecting 'ICE nego success'.

* Other unit tests:
  - Print stack trace on crash on Linux and DarwinOS via SIGSEGV signal handler.
  - Update resolver test: print log on callback error, replace assertion checks with error return, fix comments, sleep periods, fix received packet count may be > 1 if server ignore the request (for example when the test machine experiencing high CPU load).
  - Update ccpp.yml: add -g for jobs with unit-tests.
  - More lenient on tsx retransmission count check in pjsip-test.
  - Update tsx_uac/s_test.c: allow retransmission timing diff from 150 to 500ms to accommodate possible CPU spike on some test machines.
2020-04-30 11:25:19 +07:00
Nanang Izzuddin
fedc629c4a
More pjsua-test work: print full log to help investigating any failed test, and other minor updates. (#2322)
* pjsua-test print full test log if test failed
* Update subscription check condition in pjsua presence test
* Update ccpp.yml
2020-03-04 09:11:37 +07:00
Nanang Izzuddin
848ce29fa5
More pjsua-test work: retry telnet on fail and runall.py emits exit/error code (#2320)
More pjsua-test work: run.py retry telnet on fail and runall.py emits exit/error code
2020-03-03 10:17:27 +07:00
Nanang Izzuddin
48a8aebc45
Update python pjsua-test to use telnet CLI (#2309)
* Update pjsua test to use pjsua telnet CLI, configurable via `DEFAULT_TELNET` setting in `inc_cfg.py`, set it to `False` to return to the old behavior using console prompt+stdin/stdout.
* Update pjsua test indentation: replace tab->space.
2020-03-02 09:48:54 +07:00
Nanang Izzuddin
8d6ca24530 Re #1842:
- Updated python test driver run.py to perform stdout polling using a dedicated thread, this will increase the robustness of pattern matcing class "Expect" and remove the possibility of stucked pjsua (due to output buffer full when no stdout read polling is done).
 - Also updated other test driver and scenario accordingly.


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5067 74dad513-b988-da41-8d7b-12977e46ad98
2015-04-13 12:28:02 +00:00
Nanang Izzuddin
7e18022303 Re #1523:
- runall.py: fix option parser
 - run.py: avoid double newlines in logging
 - mod_sipp.py: redirect sipp output to /dev/null & add sipp error string
 - misc fixes on sipp scenarios, e.g: regex to get via branch, file rename.



git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4183 74dad513-b988-da41-8d7b-12977e46ad98
2012-06-28 09:16:03 +00:00
Benny Prijono
a77a0da32d Misc (re #1175): added protection against broken pipe exception in python unit test when handling error
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3475 74dad513-b988-da41-8d7b-12977e46ad98
2011-03-23 03:48:13 +00:00
Nanang Izzuddin
57ab972595 Misc (re #1068): added pjsua win32 executable name list in python test driver (to look up default pjsua executable).
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3248 74dad513-b988-da41-8d7b-12977e46ad98
2010-08-05 07:24:40 +00:00
Benny Prijono
4fa1602dde Misc (#1026):
- fixed wrong Unix detection in Python automated test


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3142 74dad513-b988-da41-8d7b-12977e46ad98
2010-04-20 09:52:54 +00:00
Benny Prijono
8a0e97b2c9 Fixed exception error on the Python test due to child process already exiting
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2414 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-04 20:15:37 +00:00
Benny Prijono
d5962679b7 Test refinements for mingw etc.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2410 74dad513-b988-da41-8d7b-12977e46ad98
2009-01-02 18:15:07 +00:00
Benny Prijono
43b6ecea36 Added --list argument to list tests in runall.py, and fixed build.mak location error due to moving test directory last time
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2398 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-29 14:52:29 +00:00
Benny Prijono
945aeb2681 Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2392 74dad513-b988-da41-8d7b-12977e46ad98
2008-12-22 18:54:58 +00:00
Renamed from pjsip-apps/src/test-pjsua/run.py (Browse further)