2016-12-02 08:36:33 +00:00
|
|
|
#include <check.h>
|
|
|
|
|
2017-01-10 23:46:10 +00:00
|
|
|
#include "../src/lib_ccx/lib_ccx.h"
|
|
|
|
#include "../src/lib_ccx/ccx_common_option.h"
|
|
|
|
|
2016-12-02 08:36:33 +00:00
|
|
|
// TESTS:
|
|
|
|
#include "ccx_encoders_splitbysentence_suite.h"
|
|
|
|
|
2017-01-10 23:46:10 +00:00
|
|
|
struct ccx_s_options ccx_options;
|
|
|
|
volatile int terminate_asap = 0;
|
2016-12-02 08:36:33 +00:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
int number_failed;
|
|
|
|
Suite *s;
|
|
|
|
SRunner *sr;
|
|
|
|
|
|
|
|
s = ccx_encoders_splitbysentence_suite();
|
|
|
|
sr = srunner_create(s);
|
|
|
|
srunner_set_fork_status(sr, CK_NOFORK);
|
|
|
|
|
2016-12-15 16:23:16 +00:00
|
|
|
srunner_run_all(sr, CK_VERBOSE);
|
2016-12-02 08:36:33 +00:00
|
|
|
number_failed = srunner_ntests_failed(sr);
|
|
|
|
srunner_free(sr);
|
|
|
|
return (number_failed == 0) ? 0 : 1;
|
|
|
|
}
|