]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
I'm adding these two functions as they are usefull to run, but turning
authorMiek Gieben <miekg@NLnetLabs.nl>
Thu, 20 Apr 2006 13:36:54 +0000 (13:36 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Thu, 20 Apr 2006 13:36:54 +0000 (13:36 +0000)
them in a foolproof test is difficult.

test/f [new file with mode: 0755]
test/m [new file with mode: 0755]

diff --git a/test/f b/test/f
new file mode 100755 (executable)
index 0000000..09fc5c5
--- /dev/null
+++ b/test/f
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# get all the functions from ldns
+
+FILES="buffer.h error.h host2str.h keys.h packet.h rdata.h rr_functions.h str2host.h update.h wire2host.h
+common.h dname.h dnssec.h higher.h host2wire.h net.h parse.h resolver.h
+rr.h tsig.h util.h zone.h"
+
+# we need two grep ldns_ ...
+for i in $FILES; do 
+        cpp ../ldns/$i  | egrep '.*? .*?\(.*' | grep ldns_  | \
+        awk '{ print $2 }' | sed 's/^\*//' | sed 's/(.*$//' | grep ldns_
+done
diff --git a/test/m b/test/m
new file mode 100755 (executable)
index 0000000..a6e19d9
--- /dev/null
+++ b/test/m
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+egrep -v '^#' ../doc/function_manpages | sed 's/, /\n/g' | sed 's/|.*$//' | sort | uniq