Commit Graph

124 Commits

Author SHA1 Message Date
Joni Räsänen 07a802546e formats: Add send test + comments to distinguish different packet types 2022-03-22 15:10:16 +02:00
Joni Räsänen 59f464e24c formats: Prevent crash if aggregation claims to be larger than packet 2022-03-22 09:03:50 +02:00
Joni Räsänen 227da23d34 tests: Add functions usable by all tests
This makes the tests much, much easier to modify and add new tests.
2022-03-04 10:20:52 +02:00
Joni Räsänen 448b3c0bcb tests: Reduce test time and check version in formats test 2022-03-03 16:58:36 +02:00
Joni Räsänen 846164a331 doc: Update link to examples folder 2022-02-28 12:04:09 +02:00
Joni Räsänen f62ade9c70 Merge branch 'example_improvements'
# Conflicts:
#	CMakeLists.txt
#	src/formats/h264.hh
#	src/formats/h265.hh
#	src/formats/h266.hh
#	src/formats/h26x.cc
#	src/formats/h26x.hh
#	src/lib.cc
#	src/pkt_dispatch.hh
#	src/rtp.cc
#	uvgRTP.pro
2022-02-22 14:03:49 +02:00
Joni Räsänen 8394152f26 tests: Add check for pull_frame test that it receives frames 2022-02-21 10:05:17 +02:00
Joni Räsänen 700460460e tests: Update test readme with new file names 2022-02-03 11:53:38 +02:00
Joni Räsänen 94b99776a4 tests: Make tests easier to follow along by printing progress 2022-02-03 11:41:02 +02:00
Joni Räsänen f176da72d8 tests: Reorder tests in terms of complexity
Running simpler tests first seems better since there are fewer
potential problem areas tested at one time limiting the search area for
bugs. Another reason was that I was having problems with srtp on
windows for some reason.
2022-02-03 11:19:55 +02:00
Joni Räsänen 314eec11bf tests: Add test for double binding with RTCP
A relatively common scenario that should be handled gracefully.
2022-02-02 09:46:58 +02:00
Joni Räsänen 643a319f43 common: Add the read amount to ring buffer in packet dispatch
Tested this and seems to work.
2022-02-01 08:27:31 +02:00
Joni Räsänen c117ca74f0
doc: Fix file links in automated test description 2021-09-16 16:26:28 +03:00
Joni Räsänen 62ce69c7c5
doc: Fix links in automated test description 2021-09-16 16:25:26 +03:00
Joni Räsänen e47525a476
doc: Document how to run automated tests 2021-09-16 16:20:52 +03:00
Joni Räsänen 8f438c57d0 common: Vastly improve the pull_frame timing
The previous implementation had the pull_frame take around 20x longer
than what the user specifies (no matter how long the user specified.
Now the excess should only be max 30 ms, which is an improvement.
2021-09-16 12:04:38 +03:00
Joni Räsänen 88520077fe tests: Test pull_frame timing
It seems pretty bad.
2021-09-16 11:54:21 +03:00
Joni Räsänen 2e9c37773d tests: Add test for sending large amounts of data
I tried to test garbage collection, but didn't get it to trigger.
This test should still be useful.
2021-09-15 14:36:15 +03:00
Joni Räsänen 2b9b669548 tests: Add tests for different RTP formats 2021-09-15 12:28:25 +03:00
Joni Räsänen 2e7cf84065 tests: Link Crypto++ to tests with MSVC and Linux
Also small improvements to unit tests. The best way to do these tests
is to make the tests as resistant to crashes as possible while also
adding tests for everything.
2021-09-07 14:33:05 +03:00
Joni Räsänen 5fe0116327 tests: Add initial unit tests
These tests are mostly just placeholders until something more
substantial is added. They are good tests, but it would be better to
also test the functions in different kinds of scenarios.

Note: the Crypto++ is causing problems in tests on Windows, because the
CMake is rerun often and this causes the Crypto++ linking to disappear.
2021-09-07 12:23:40 +03:00
Joni Räsänen ea55f655ea version: Rename header to follow same hh format as other headers 2021-09-02 12:28:53 +03:00
Joni Räsänen d5c2212b40 api: Adjust and fix version stuff
Update correct version number. Remove extra uvgrtp from file/function
names.
2021-08-30 15:25:29 +03:00
dennis 837b58351e build: Completely Redesigned CMake files (#44)
Primary changes are:
- Versioning integrated in cmake build system with library for version usage in end user programs
- New minimum CMAke required version is 3.14
- Created install capabilities. Allows uvgRTP to be used in different scenarios for win and lin (mac-os still missing)
- Added testing environment with automatically fetched google test and some example test code.
- Added packaging capabilities (and some placeholders that have to be changed)
- Create Shared library with -DBUILD_SHARED_LIBS=TRUE
2021-08-08 22:18:40 +02:00