[h5py] 429/455: Dump obsolete autotest module

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.

commit e01ba90cc8e2fd1c3b393e68f362f820bf20246b
Author: andrewcollette <andrew.collette at gmail.com>
Date:   Mon Feb 22 21:38:21 2010 +0000

    Dump obsolete autotest module
---
 autotest.py | 76 -------------------------------------------------------------
 1 file changed, 76 deletions(-)

diff --git a/autotest.py b/autotest.py
deleted file mode 100644
index fb6070a..0000000
--- a/autotest.py
+++ /dev/null
@@ -1,76 +0,0 @@
-from __future__ import with_statement
-
-"""
-    Script to test multiple configurations of h5py on a target machine
-"""
-
-import os.path as op
-import os, sys
-from commands import getstatusoutput
-
-def debug(what):
-    if 'debug' in sys.argv:
-        print '>>> '+what
-
-def iterconfigs(cfile):
-    """ Iterate over multiple configurations; i.e. the "whatever" in 
-        in "setup.py configure whatever".  The special value DEFAULT
-        corresponds to no extra config information.
-    """
-    for line in (x.strip() for x in cfile):
-        if len(line) > 0 and not line.startswith('#'):
-            debug("Line: "+line)
-            if line == 'DEFAULT':
-                yield ""
-            else:
-                yield line
-
-class CommandFailed(Exception):
-    pass
-
-def do_cmd(cmd, context=""):
-    debug(cmd)
-    s, o = getstatusoutput(cmd)
-    if s != 0:
-        msg = "Command failed: %s\n" % cmd
-        msg += "Context: %s\n" % context
-        msg += o
-        print msg
-        raise CommandFailed(cmd)
-    
-def run():
-
-    failed = False
-
-    # Check what versions of Python are installed
-    pythons = [x for x in ('python2.5', 'python2.6') if os.system('%s -V > /dev/null 2>&1' % x) == 0]
-
-    debug("Have pythons %s" % pythons)
-
-    # Try to open configs file
-    try:
-        with open(op.join(op.expanduser('~'), '.h5pytest'),'r') as cfile:
-            debug("Config file found!")
-            configs = list(iterconfigs(cfile))
-    except IOError:
-        debug("No config file")
-        configs = [""]
-
-    for p in pythons:
-        for c in configs:
-            try:
-                do_cmd('%s setup.py configure %s' % (p, c), c)
-                do_cmd('%s setup.py build' % p, c)
-                do_cmd('%s setup.py test' %p, c)
-            except CommandFailed:
-                failed = True
-            finally:
-                do_cmd('%s setup.py clean' %p)
-
-    return not failed
-
-if __name__ == '__main__':
-    if not run():
-        sys.exit(1)
-
-

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git



More information about the debian-science-commits mailing list