Exemple #1
0
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]);
}
Exemple #2
0
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]);
}
Exemple #3
0
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;
}