Difference between revisions of "Installation test"
(Created page with "== wxPython test == [http://thread.gmane.org/gmane.science.nmr.relax.devel/3942 See messages at mailing list] Downloaded wxPython demo from: http://www.wxpython.org/download....") |
(Added an intro sentence.) |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | The following describes how to test relax after installation. | ||
+ | |||
+ | == Run the full test suite == | ||
+ | Always perform a test-suite run when you have installed or updated relax | ||
+ | <source lang="bash"> | ||
+ | relax --test-suite -l system-tests.log | ||
+ | relax --help | ||
+ | </source> | ||
+ | |||
+ | Individual test suite categories can be run with | ||
+ | <source lang="bash"> | ||
+ | relax -s -l system-tests.log | ||
+ | relax -u -l unit-tests.log | ||
+ | relax --gui-tests -l gui-tests.log | ||
+ | relax --help | ||
+ | </source> | ||
+ | |||
+ | == Single test runs == | ||
+ | |||
+ | Individual groups of system or GUI tests, as well as single tests from both categories can be run as follows: | ||
+ | <source lang="bash"> | ||
+ | # Run an individaul GUI test. | ||
+ | relax --gui-tests Mf.test_mf_auto_analysis --debug | ||
+ | # Run all of the Peak_lists system tests. | ||
+ | relax --system-tests Peak_lists | ||
+ | # Or even individual tests. | ||
+ | relax --system-tests Peak_lists.test_read_peak_list_nmrview | ||
+ | relax -s Peak_lists.test_read_peak_list_NMRPipe_seriesTab | ||
+ | </source> | ||
+ | |||
+ | Running indivdual unit tests is far more complicated. For instructions, please see the [http://www.nmr-relax.com/api/2.2/test_suite.unit_tests.unit_test_runner-module.html manual]. | ||
+ | |||
== wxPython test == | == wxPython test == | ||
[http://thread.gmane.org/gmane.science.nmr.relax.devel/3942 See messages at mailing list] | [http://thread.gmane.org/gmane.science.nmr.relax.devel/3942 See messages at mailing list] | ||
Line 5: | Line 37: | ||
[http://downloads.sourceforge.net/wxpython/wxPython-demo-2.8.12.1.tar.bz2 Source Code and Other Tarballs] | [http://downloads.sourceforge.net/wxpython/wxPython-demo-2.8.12.1.tar.bz2 Source Code and Other Tarballs] | ||
+ | <source lang="python"> | ||
+ | python2.7 wxPython-2.8.12.1/demo/demo.py | ||
+ | </source> | ||
+ | |||
+ | # first run the demo.py file, | ||
+ | # go to the "Core Windows/Controls", | ||
+ | # select "Menu", | ||
+ | # go to the "Demo" tab, | ||
+ | # click on "Show the Menu sample", | ||
+ | # in the new window, click on the "Fun" menu, | ||
+ | # check that you see a smiley face in the first menu entry. | ||
+ | |||
+ | If there is no smiley face, then the problem is in wxPython. <br> | ||
+ | Otherwise there is a problem with relax and the setup you have. <br> | ||
+ | Also when you run relax from the terminal, do you see any wxPython errormessages? Or GTK+ errors? <br> | ||
+ | Do you see any errors if you use the '''--debug''' command line option when running relax? | ||
=== Other tests === | === Other tests === |
Latest revision as of 17:45, 19 October 2015
The following describes how to test relax after installation.
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
Individual groups of system or GUI tests, as well as single tests from both categories can be run as follows:
# Run an individaul GUI test.
relax --gui-tests Mf.test_mf_auto_analysis --debug
# Run all of the Peak_lists system tests.
relax --system-tests Peak_lists
# Or even individual tests.
relax --system-tests Peak_lists.test_read_peak_list_nmrview
relax -s Peak_lists.test_read_peak_list_NMRPipe_seriesTab
Running indivdual unit tests is far more complicated. For instructions, please see the manual.
wxPython test
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
- first run the demo.py file,
- go to the "Core Windows/Controls",
- select "Menu",
- go to the "Demo" tab,
- click on "Show the Menu sample",
- in the new window, click on the "Fun" menu,
- 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")