[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pkg-octave-devel] Octave 3.6.2 released



* Sébastien Villemot <sebastien.villemot@ens.fr> [2012-06-01 11:36]:

> I am going to package it today, so that hopefully it ends up in Wheezy.

Thanks for reacting so quickly.  Version 3.6.2-1 of the package has
already been built on several architectures.  You will find below a
simple-minded Python script that fetches the build logs at buildd.d.o and
extract the lines containing "PASS" or "FAIL".  The result for today can
be seen at:

    http://www.laboissiere.net/~rafael/octave-3.6.2-1-tests.txt

The number of test failures varied between 0 and 3.

I am CC:ing this message to octave-maintainers, since this can be of
interest to the upstream authors.

Cheers,
 
Rafael
#!/usr/bin/python

### Fetch the build logs of the octave package in Debian and show the
### results of the tests.

### Coypright (C) 2012 Rafael Laboissiere
###
### This program is free software. It comes without any warranty, to the
### extent permitted by applicable law. You can redistribute it and/or
### modify it under the terms of the Do What The Fuck You Want To Public
### License, Version 2, as published by Sam Hocevar. See
### http://sam.zoy.org/wtfpl/COPYING for more details.

import re
import urllib2

base_url = 'https://buildd.debian.org/status'
table_url = base_url + '/package.php?p=octave'
response = urllib2.urlopen (table_url)
html = response.read ()
logs = re.findall (r'href="(fetch.php\?pkg=octave&amp;arch=[^"]*)"', html)

sep = '=' * 70
for line in logs:
    line = line.replace ('&amp;', '&')
    m = re.match (r'.*arch=(.*)', line)
    tag = m.group (1).replace ('&', ', ')
    print '\n' + sep + '\n' + tag + '\n' + sep
    response = urllib2.urlopen (base_url + '/' + line)
    html = response.readlines ()
    passes = filter (lambda x: re.match ('.*(FAIL|PASS).*', x) != None, html)
    print ''.join (passes)

Reply to: