summaryrefslogtreecommitdiff
path: root/source/aparser/harness.awk
blob: 6c4c35c40f291607fa6fbc06bad9d2df009cc668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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_structs;i++) {
		v["TEST"] = structs[i, "name"];
		print_template(f, "harness.tpl", v);
	}

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