Installation test

From relax wiki
Revision as of 15:30, 19 July 2013 by Bugman (talk | contribs) (Updated the subtitle.)
Jump to navigation Jump to search

Run the full test suite

Always perform a test-suite run when you have installed or updated relax

relax --test-suite -l system-tests.log
relax --help

Individual test suite categories can be run with

relax -s -l system-tests.log
relax -u -l unit-tests.log
relax --gui-tests -l gui-tests.log
relax --help

Single test runs

See manual.

# Run specific GUI
relax --gui-tests Mf.test_mf_auto_analysis --debug
# To test_suite.system_tests.peak_lists.Peak_lists
relax -s Peak_lists
# Even more specific
relax -s Peak_lists.test_read_peak_list_nmrview
relax -s Peak_lists.test_read_peak_list_NMRPipe_seriesTab

wxPython test

See messages at mailing list

Downloaded wxPython demo from: http://www.wxpython.org/download.php
Source Code and Other Tarballs

 python2.7 wxPython-2.8.12.1/demo/demo.py
  1. first run the demo.py file,
  2. go to the "Core Windows/Controls",
  3. select "Menu",
  4. go to the "Demo" tab,
  5. click on "Show the Menu sample",
  6. in the new window, click on the "Fun" menu,
  7. check that you see a smiley face in the first menu entry.

If there is no smiley face, then the problem is in wxPython.
Otherwise there is a problem with relax and the setup you have.
Also when you run relax from the terminal, do you see any wxPython errormessages? Or GTK+ errors?
Do you see any errors if you use the --debug command line option when running relax?

Other tests

Write in relax prompt, to check

import os, graphics
a=graphics.status.install_path; print a,os.path.exists(a);os.listdir(a)
b=graphics.ANALYSIS_IMAGE_PATH; print b,os.path.exists(b);os.listdir(b)
c=graphics.WIZARD_IMAGE_PATH; print c,os.path.exists(c);os.listdir(c)
d=graphics.IMAGE_PATH; print d,os.path.exists(d);os.listdir(d)
e=graphics.fetch_icon("relax.noe", size="16x16")

See also