File: do-test.c

package info (click to toggle)
libchewing 0.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,588 kB
  • ctags: 878
  • sloc: sh: 9,738; ansic: 7,644; makefile: 234; python: 49
file content (28 lines) | stat: -rw-r--r-- 614 bytes parent folder | download | duplicates (3)
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
27
28
/**
 * do-test.c
 *
 * Copyright (c) 2005
 *	libchewing Core Team. See ChangeLog for details.
 *
 * See the file "COPYING" for information on usage and redistribution
 * of this file.
 */

#include <check.h>

extern Suite *key2pho_suite (void);
extern Suite *utf8_suite (void);
extern Suite *mmap_suite(void);

int main (void)
{
	int nf;
	SRunner *sr = srunner_create(key2pho_suite());
	srunner_add_suite(sr, utf8_suite());
	srunner_add_suite(sr, mmap_suite());
	srunner_set_xml(sr, "do-test.xml");
	srunner_run_all (sr, CK_NORMAL);
	nf = srunner_ntests_failed(sr);
	srunner_free(sr);
	return (nf == 0) ? 0 : 1;
}