File: runtest.c

package info (click to toggle)
ccextractor 0.87+ds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 10,064 kB
  • sloc: ansic: 172,772; makefile: 777; sh: 622; python: 319
file content (26 lines) | stat: -rw-r--r-- 540 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <check.h>

#include "../src/lib_ccx/lib_ccx.h"
#include "../src/lib_ccx/ccx_common_option.h"

// TESTS:
#include "ccx_encoders_splitbysentence_suite.h"

struct ccx_s_options ccx_options;
volatile int terminate_asap = 0;

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);

	srunner_run_all(sr, CK_VERBOSE);
	number_failed = srunner_ntests_failed(sr);
	srunner_free(sr);
	return (number_failed == 0) ? 0 : 1;
}