diff options
| author | Andrew Lenharth <andrewl@lenharth.org> | 2005-04-27 02:13:20 +0000 |
|---|---|---|
| committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-04-27 02:13:20 +0000 |
| commit | 9b3114d4edf81b8442d41089d748d0441cf49dd2 (patch) | |
| tree | 92724125e6f69434643f834a335ec94d90e3ad34 /llvm/utils/parseNLT.pl | |
| parent | dc11db68b63afd46ac2e44834f7745fb10d27556 (diff) | |
| download | bcm5719-llvm-9b3114d4edf81b8442d41089d748d0441cf49dd2.tar.gz bcm5719-llvm-9b3114d4edf81b8442d41089d748d0441cf49dd2.zip | |
A first step towards being able to do more interesting things with the nightly tester data. Moreinteresting things will come soon, so tune in
llvm-svn: 21584
Diffstat (limited to 'llvm/utils/parseNLT.pl')
| -rw-r--r-- | llvm/utils/parseNLT.pl | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/llvm/utils/parseNLT.pl b/llvm/utils/parseNLT.pl new file mode 100644 index 00000000000..3a2e82e1e02 --- /dev/null +++ b/llvm/utils/parseNLT.pl @@ -0,0 +1,32 @@ +#!/usr/bin/perl +# a first attempt to parse the nightly tester pages into something +# one can reason about, namely import into a database +# USE: perl parseNLT.pl <2005-03-31.html +# for example + +while(<>) + { + if (/LLVM Test Results for (\w+) (\d+), (\d+)</) + { + $mon = $1; + $day = $2; + $year = $3; + } + if (/<td>([^<]+)<\/td>/) + { + if ($prefix) + { $output .= "$1 "; } + } + if (/<tr/) + { + if ($output) + { print "\n$day $mon $year $prefix/$output"; $output = ""; } + } + if (/<h2>(Programs.+)<\/h2>/) + { + $prefix = $1; + } + } + +if ($output) + { print "\n$day $mon $year $prefix/$output"; $output = ""; } |

