示例#1
0
文件: main.c 项目: katono/PCUnit
int main(void)
{
	const PCU_SuiteMethod suites[] = {
		AssertNotSupportedTest_suite,
		AssertOutputTest_suite,
	};
	PCU_set_putchar(putchar);
	PCU_set_getchar(getchar);
	PCU_set_verbose(1);
	PCU_enable_color();
	return PCU_run(suites, sizeof suites / sizeof suites[0]);
}
示例#2
0
文件: ain.c 项目: kazuyamamoto/futil
int main(int argc, char *argv[])
{
	const PCU_SuiteMethod suites[] = {
		test_futil_suite,
	};
	PCU_set_putchar(putchar);
	PCU_set_getchar(getchar);
	PCU_enable_color();
	if (argc >= 2) {
		PCU_set_verbose(1);
	}
	return PCU_run(suites, sizeof suites / sizeof suites[0]);
}
示例#3
0
文件: main.c 项目: monaka/PCUnit
int main(int argc, char **argv)
{
	const PCU_SuiteMethod suites[] = {
		RingBufTest_suite,
		StrTokenTest_suite,
	};

	PCU_set_putchar(putchar);
	PCU_set_getchar(getchar);
	PCU_enable_color();
	PCU_set_verbose(1);
	if (argc >= 2) {
		PCU_console_run(suites, sizeof suites / sizeof suites[0]);
	} else {
		return PCU_run(suites, sizeof suites / sizeof suites[0]);
	}
	return 0;
}