summaryrefslogtreecommitdiff
path: root/source3/aparser/harness.awk
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-16 14:02:31 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-16 14:02:31 +0000
commit058ecd89b45bf4e52194595a320e140483c93d30 (patch)
tree83b41715b4014109459f8470af4060588aaf4673 /source3/aparser/harness.awk
parent128026c9a2de83a8ac6214e733fa871440c6b77f (diff)
downloadsamba-058ecd89b45bf4e52194595a320e140483c93d30.tar.gz
samba-058ecd89b45bf4e52194595a320e140483c93d30.tar.bz2
samba-058ecd89b45bf4e52194595a320e140483c93d30.zip
take the sructure name to run through vluke on the command line
(This used to be commit 03fbe1b1514774c9f3c4d553ca3b5b019ba0b11f)
Diffstat (limited to 'source3/aparser/harness.awk')
-rw-r--r--source3/aparser/harness.awk19
1 files changed, 14 insertions, 5 deletions
diff --git a/source3/aparser/harness.awk b/source3/aparser/harness.awk
index 00e3f44a68..f63863d638 100644
--- a/source3/aparser/harness.awk
+++ b/source3/aparser/harness.awk
@@ -1,13 +1,22 @@
function produce_harness(f,
- LOCAL, v, struct_num)
+ LOCAL, v, struct_num, i)
{
struct_num=structs[test];
v["MODULE"]=module;
- v["TEST"]=test;
- v["TEST_FUNC"]=moduletest;
- v["STRUCTNAME"] = structs[struct_num, "name"];
- v["FUNCNAME"] = "io_" v["STRUCTNAME"];
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++;
}