aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/mk580.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libtest/mk580.pl')
-rw-r--r--tests/libtest/mk580.pl18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/libtest/mk580.pl b/tests/libtest/mk580.pl
new file mode 100644
index 000000000..8dc6d57b8
--- /dev/null
+++ b/tests/libtest/mk580.pl
@@ -0,0 +1,18 @@
+open(S, '<', $ARGV[0]);
+
+print <<EOF
+#include "curl/curl.h"
+
+int test[] = {
+EOF
+ ;
+while(<S>) {
+ my @a=split(/ +/);
+ chomp $a[0];
+ chomp $a[3];
+ if($a[0] && !$a[3]) {
+ printf("%s,\n", $a[0]);
+ }
+}
+print "};\n";
+close(S);