summaryrefslogtreecommitdiff
path: root/testdata/speed_cache.tdir/makeqs.c
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/speed_cache.tdir/makeqs.c')
-rw-r--r--testdata/speed_cache.tdir/makeqs.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/testdata/speed_cache.tdir/makeqs.c b/testdata/speed_cache.tdir/makeqs.c
new file mode 100644
index 000000000000..8e6179f66b21
--- /dev/null
+++ b/testdata/speed_cache.tdir/makeqs.c
@@ -0,0 +1,14 @@
+/**
+ * \file
+ * This file creates queries for the speed test
+ */
+#include <stdio.h>
+#include <stdlib.h>
+/** main program to create queries, pass the number of them. */
+int main(int argc, char** argv) {
+ int i;
+ int max = atoi(argv[1]);
+ for(i=0; i<max; i++)
+ printf("a%8.8d.example.com IN A\n", i);
+ return 0;
+}