ccextractor/tests
2016-12-15 21:23:16 +05:00
..
ccx_encoders_splitbysentence_suite.c Break incoming subs into sentences (through a buffer), and remove duplicates 2016-12-15 20:21:43 +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 Break incoming subs into sentences (through a buffer), and remove duplicates 2016-12-15 20:21:43 +05:00
README.md Break incoming subs into sentences (through a buffer), and remove duplicates 2016-12-15 20:21:43 +05:00
runtest.c remove debug-files, increase verbosity for tests 2016-12-15 21:23:16 +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 failed after your changes, you could debug them (almost all flags for this are set in the tests/Makefile.

Run:

# build test runner
make
# load test runner to the debgger:
gdb runner

# run under debugger:
(gdb) run

# on segfault:
(gdb) where

DEPENDENCIES

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