summaryrefslogtreecommitdiff
path: root/source3/aparser/harness.awk
blob: f63863d638545e76a0d4a6ba101eb4d674c50520 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function produce_harness(f,
			 LOCAL, v, struct_num, i)
{
	struct_num=structs[test];

	v["MODULE"]=module;

	print_template(f, "harness_start.tpl", v);

	for (i=0;i<num_tests;i++) {
		v["TEST"] = tests[i];
		print_template(f, "harness.tpl", v);
	}

	print_template(f, "harness_end.tpl", v);
}

function add_test(test)
{
	tests[num_tests] = test;
	num_tests++;
}