[master] Add a README to the Anaconda tests folder

Vratislav Podzimek vpodzime at redhat.com
Mon Oct 14 07:41:21 UTC 2013


On Fri, 2013-10-11 at 09:39 -0400, David Shea wrote:
> On 10/11/2013 04:58 AM, Martin Kolman wrote:
> > The README documents how to install dependencies needed by the tests
> > and how to run them, either all at once or individually.
> >
> > Signed-off-by: Martin Kolman <mkolman at redhat.com>
> > ---
> >   tests/README | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
> >   1 file changed, 50 insertions(+)
> >   create mode 100644 tests/README
> >
> > diff --git a/tests/README b/tests/README
> > new file mode 100644
> > index 0000000..6a4b394
> > --- /dev/null
> > +++ b/tests/README
> > @@ -0,0 +1,50 @@
> > +Anaconda tests
> > +==============
> > +
> > +Dependencies
> > +------------
> > +
> > +To run the tests, you need to install the Anaconda
> > +build and runtime dependencies.
> > +
> > +If you installed Anaconda from a package, all runtime
> > +dependencies should have been installed automatically
> > +and you only need to install the Anaconda build dependencies:
> > +
> > +sudo make install-buildrequires
> > +
> > +
> > +If your Anaconda doesn't come from a package
> > +(git clone, unpacked source tarball, etc.),
> > +you _also_ need to install the runtime dependencies:
> > +
> > +sudo make install-requires
> > +
> > +
> > +Running the tests
> > +-----------------
> > +
> > +The Anaconda tests can be run either all together in sequence:
> > +
> > +make check
> > +
> > +
> > +Or individually:
> > +
> > +* unit tests:
> > +
> > +./tests/nosetests.sh
> > +
> > +
> > +* Pylint source code check:
> > +
> > +./tests/pylint/runpylint.sh
> > +
> > +
> > +* Gettext warning
> > +
> > +./tests/gettext/gettext_warnings.sh
> > +
> > +
> > +* Accelerator check
> > +./tests/accelerators/run_check_accelerators.sh
> The tests have additional dependencies not listed in the spec file that 
> we should note. accelerators requires python-lxml, and the pylint test 
> requires pylint.
> 
> We have python-nose in the BuildRequires already: maybe we should just 
> add other test dependencies as BuildRequires?
I think that some "ultimate goal" should be running tests as part of the
build process (at least unittests) which would require all such
dependencies listed as BuildRequires. But until that time a note in the
README file should be enough, I guess.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list