WONKY



LOG | FILES | OVERVIEW


#ifndef WOBLER_TESTS_H
#define WOBLER_TESTS_H WOBLER_TESTS_H

#define TEST_TIME_BASELINE 1.0

struct test_entry
{
	char *filenames[100];
	void (*test_function)(char**);
	double how_much_time_should_execution_take;

}
	tests[]=
{
	{
		.filenames={"test_generic.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_undeclared_error.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_preproc_error.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_declaration.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_declaration2.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_declaration3.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_declaration_error.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_bitfields.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_generic_error.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_linkage.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_linkage2.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_linkage_error.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_linkage_error2.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_bitfield_error.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_bitfield_error2.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_bitfield_error3.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_function_definition_error.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_function_definition_error2.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_function_definition.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_typedef.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_digraphs.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_variadic_function.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_variadic_function_error.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_variadic_function_error2.c"},
		.test_function=should_not_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_conditional_expression.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_for_cycle_declaration.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},
	{
		.filenames={"test_declaration_speed.c"},
		.test_function=should_compile,
		.how_much_time_should_execution_take=TEST_TIME_BASELINE,
	},

};


#endif