summaryrefslogtreecommitdiff
path: root/source3/aparser/harness.awk
diff options
context:
space:
mode:
Diffstat (limited to 'source3/aparser/harness.awk')
-rw-r--r--source3/aparser/harness.awk17
1 files changed, 17 insertions, 0 deletions
diff --git a/source3/aparser/harness.awk b/source3/aparser/harness.awk
new file mode 100644
index 0000000000..6c4c35c40f
--- /dev/null
+++ b/source3/aparser/harness.awk
@@ -0,0 +1,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);
+}
+