mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-01-25 02:07:54 +00:00
FS-7820
C level unit testing and micro benchmarking framework, including one example unit test.
This commit is contained in:
18
tests/unit/README
Normal file
18
tests/unit/README
Normal file
@@ -0,0 +1,18 @@
|
||||
FreeSWITCH unit tests should be kept as shallow unit tests and micro
|
||||
benchmarks testing functionality exposed through libfreeswitch.
|
||||
|
||||
Requirements for a new unit tests:
|
||||
|
||||
1. Tests must use TAP(Test Anything Protocol) output format, and must
|
||||
print to stderr the summary statistics of the test before exiting.
|
||||
|
||||
2. Each test must return 0 on successful completion, or a non-zero
|
||||
result in case of a failure.
|
||||
|
||||
3. Benchmarking stats should be output as a TAP note at the end of the
|
||||
test in a human and machine(regex) parsable format
|
||||
|
||||
Use libtap from https://github.com/zorgnax/libtap
|
||||
cd /usr/local/src/
|
||||
git clone https://github.com/zorgnax/libtap.git
|
||||
make PREFIX=/usr install
|
||||
Reference in New Issue
Block a user