mailRe: [bug #22071] relax unit test and system test not functional


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Edward d'Auvergne on May 23, 2014 - 10:44:
Do you have a subversion copy of the trunk?  Could you run the tests
on that to see if it is the git-svn information retrieval that is
causing the problems?

Cheers,

Edward



On 23 May 2014 10:41, Troels Emtekær Linnet <tlinnet@xxxxxxxxxxxxx> wrote:
This works

relax_disp_speed -i



                                  relax repository checkout r23372
                        svn+ssh://svn.gna.org/svn/relax/branches/disp_speed

                              Molecular dynamics by NMR data analysis

                             Copyright (C) 2001-2006 Edward d'Auvergne
                         Copyright (C) 2006-2014 the relax development team

This is free software which you are welcome to modify and redistribute
under the conditions of the
GNU General Public License (GPL).  This program, including all
modules, is licensed under the GPL
and comes with absolutely no warranty.  For details type 'GPL' within
the relax prompt.

Assistance in using the relax prompt and scripting interface can be
accessed by typing 'help' within
the prompt.

Processor fabric:  Uni-processor.


Hardware information:
    Machine:                 x86_64
    Processor:               i386
    Processor name:          Intel(R) Core(TM) i5-2435M CPU @ 2.40GHz
    Endianness:              little
    Total RAM size:          2048.0 Mb
    Total swap size:         6144.0 Mb

Operating system information:
    System:                  Darwin
    Release:                 13.1.0
    Version:                 Darwin Kernel Version 13.1.0: Thu Jan 16
19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64
    Mac version:             10.9.2 (, , ) x86_64
    Distribution:
    Full platform string:    Darwin-13.1.0-x86_64-i386-32bit

Python information:
    Architecture:            32bit
    Python version:          2.7.3
    Python branch:
    Python build:            default, Apr 12 2012 11:28:34
    Python compiler:         GCC 4.0.1 (Apple Inc. build 5493)
    Libc version:
    Python implementation:   CPython
    Python revision:
    Python executable:
/Library/Frameworks/Python.framework/Versions/7.3/Resources/Python.app/Contents/MacOS/Python
    Python flags:            sys.flags(debug=0, py3k_warning=0,
division_warning=0, division_new=0, inspect=0, interactive=0,
optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0,
ignore_environment=0, tabcheck=0, verbose=0, unicode=0,
bytes_warning=0, hash_randomization=0)
    Python float info:
sys.float_info(max=1.7976931348623157e+308, max_exp=1024,
max_10_exp=308, min=2.2250738585072014e-308, min_exp=-1021,
min_10_exp=-307, dig=15, mant_dig=53, epsilon=2.220446049250313e-16,
radix=2, rounds=1)
    Python module path:      ['/Users/tlinnet/software/disp_speed',
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/pip-1.4.1-py2.7.egg',
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python27.zip',
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7',
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/plat-darwin',
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/plat-mac',
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/plat-mac/lib-scriptpackages',
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/lib-tk',
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/lib-old',
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages',
'/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/PIL',
'/Library/Python/2.7/site-packages',
'/usr/local/lib/wxPython-2.9.5.0/lib/python2.7']

Python packages and modules (most are optional):

Name               Installed    Version                   Path
minfx              True         1.0.6
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/minfx
bmrblib            True         1.0.3
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/bmrblib
numpy              True         1.6.1
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/numpy
scipy              True         0.10.1
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/scipy
wxPython           True         2.8.10.1 (mac-unicode)
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/wx
matplotlib         True         1.1.0
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/matplotlib
mpi4py             False
epydoc             True         3.0.1
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/epydoc
optparse           True         1.5.3
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/optparse.pyc
readline           True
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/lib-dynload/readline.so
profile            True
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/profile.pyc
bz2                True
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/lib-dynload/bz2.so
gzip               True
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/gzip.pyc
io                 True
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/io.pyc
xml                True         0.8.4 (internal)
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/xml/__init__.pyc
xml.dom.minidom    True
/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/xml/dom/minidom.pyc

relax information:
    Version:                 repository checkout r23372
svn+ssh://svn.gna.org/svn/relax/branches/disp_speed
    Processor fabric:        Uni-processor.

relax C modules:

Module                        Compiled    File type
                                  Path
target_functions.relax_fit    True        2-way ['Mach-O 64-bit bundle
x86_64', 'Mach-O bundle i386']
/Users/tlinnet/software/disp_speed/target_functions/relax_fit.so

2014-05-23 10:38 GMT+02:00 Troels Emtekær Linnet <tlinnet@xxxxxxxxxxxxx>:
Hi Ed.

It still does not work:
But

relax> from status import Status; status = Status()
relax> print status.install_path
/Users/tlinnet/software/disp_speed
relax>
tlinnet@linmac:disp_speed$ s=/Users/tlinnet/software/disp_speed
tlinnet@linmac:disp_speed$ cd $s; git svn find-rev $(git rev-parse HEAD)
23372

2014-05-23 9:21 GMT+02:00 Edward d'Auvergne <edward@xxxxxxxxxxxxx>:
Hi,

I just made another simplification for the git-svn version.py support:

r23366:  http://article.gmane.org/gmane.science.nmr.relax.scm/21112

Once this issue is resolved, I'll look at releasing relax 3.2.1 with
all the recent bugfixes.

Cheers,

Edward




On 23 May 2014 09:12, Edward d'Auvergne <edward@xxxxxxxxxxxxx> wrote:
Hi Troels,

If that change doesn't work, could you try running:

$ cd %s; git svn find-rev $(git rev-parse HEAD)

where the %s is replaced by the value of status.install_path.  This is
the command in the version file for obtaining the subversion revision
number from a git-svn copy.  Or:

$ cd %s; git svn info

This is the command used to find the repository URL.  These two bits
of information are used for the relax intro text, which used to look
like:

"""

                                  relax repository checkout rNone
                                                None

                              Molecular dynamics by NMR data analysis

                             Copyright (C) 2001-2006 Edward d'Auvergne
                         Copyright (C) 2006-2014 the relax development 
team

"""

But this new git-svn support:

"""

                                  relax repository checkout r23365
                               svn+ssh://svn.gna.org/svn/relax/trunk

                              Molecular dynamics by NMR data analysis

                             Copyright (C) 2001-2006 Edward d'Auvergne
                         Copyright (C) 2006-2014 the relax development 
team

"""

Maybe there is a shell incompatibility with one of these commands, so
make sure you use the 'cd %s; ' part to check that too.

Cheers,

Edward





On 23 May 2014 09:05, Edward d'Auvergne <edward@xxxxxxxxxxxxx> wrote:
Hi,

I first thought that it might have been this test suite printout change:

r23360:  http://article.gmane.org/gmane.science.nmr.relax.scm/21105

But now, with that last message, it's clear that it is these two to
the version.py module:

r23345:  http://article.gmane.org/gmane.science.nmr.relax.scm/21088
r23343:  http://article.gmane.org/gmane.science.nmr.relax.scm/21090

The git-svn support for extracting the repository information I added
mustn't be functioning as I expected.  I've attempted a fix at:

r23365:  http://article.gmane.org/gmane.science.nmr.relax.scm/21111

Cheers,

Edward




On 22 May 2014 22:58, Troels E. Linnet 
<NO-REPLY.INVALID-ADDRESS@xxxxxxx> wrote:
Follow-up Comment #2, bug #22071 (project relax):

If I break, this comes:

  File "./relax", line 7, in <module>
    relax.start(profile_flag=False)
  File "/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/relax.py", 
line 118,
in start
    processor.run()
  File 
"/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/multi/processor.py",
line 494, in run
    self.callback.init_master(self)
  File 
"/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/multi/__init__.py",
line 318, in default_init_master
    self.master.run()
  File "/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/relax.py", 
line 246,
in run
    runner.run_unit_tests()
  File
"/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/test_suite/test_suite_runner.py",
line 192, in run_unit_tests
    self.unit_result = unit_runner.run(runner=self.runner)
  File
"/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/test_suite/unit_tests/unit_test_runner.py",
line 624, in run
    finder.scan_paths()
  File
"/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/test_suite/unit_tests/unit_test_runner.py",
line 378, in scan_paths
    test_case = load_test_case(dir_path, module_name, class_name)
  File
"/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/test_suite/unit_tests/unit_test_runner.py",
line 316, in load_test_case
    return TestLoader().loadTestsFromTestCase(clazz)
  File
"/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/test_suite/relax_test_loader.py",
line 56, in loadTestsFromTestCase
    test_case = testCaseClass(testCaseNames[i])
  File
"/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/test_suite/unit_tests/_prompt/test_spectrum.py",
line 43, in __init__
    self.interpreter = Interpreter(show_script=False, 
raise_relax_error=True)
  File
"/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/prompt/interpreter.py",
 line
87, in __init__
    self.__intro_string = info.intro_text()
  File "/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/info.py", 
line 287,
in intro_text
    text2 = "%s" % (url())
  File "/sbinlab2/tlinnet/software/NMR-relax/relax_trunk/version.py", 
line
120, in url
    if not pipe.stderr.readlines():


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?22071>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-devel mailing list
relax-devel@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel



Related Messages


Powered by MHonArc, Updated Fri May 23 11:00:15 2014