ccextractor/tests
maxkoryukov 93e407f4a5 Improve SBS: fix for #639 and non-gready similarity detection
* Use own SBS-context structure to store SBS-data (fix CCExtractor/ccextractor#639)
* Search for BEST match of new string and SBS-buffer (instead of first appropriate..)
* all tests are fixed and passed
2017-01-15 22:37:51 +05:00
..
samples Improve SBS: fix for #639 and non-gready similarity detection 2017-01-15 22:37:51 +05:00
ccx_encoders_splitbysentence_suite.c Improve SBS: fix for #639 and non-gready similarity detection 2017-01-15 22:37:51 +05:00
ccx_encoders_splitbysentence_suite.h Break incoming subs into sentences (through a buffer), and remove duplicates 2016-12-15 20:21:43 +05:00
Makefile Some improvements for test-environment 2017-01-15 22:37:51 +05:00
README.md Some improvements for test-environment 2017-01-15 22:37:51 +05:00
runtest.c Some improvements for test-environment 2017-01-15 22:37:51 +05:00

UNIT TESTING

This folder contains a archetype and several unit-tests for CCExtractor

RUN TESTS

cd tests
make

This will build and run all test-suite.

If you want MORE output:

DEBUG=1 make

Where DEBUG is just an environment variable.

DEBUGGING

If tests fail after your changes, you could try to debug the failed tests.

Run following commands in the /tests directory:

# build test runner (executable file - runtest)
make
# load runtest to the debgger:
gdb runtest

# start under debugger:
(gdb) run

# if segfault occured:
(gdb) where

DEPENDENCIES

Tests are built around this library: libcheck, here is documentation