Hello,

Thank you for  your so quickly answer. I following your instruction, skip the 
smallram test.
I re-ran the unit test, I got 7 error, please see the attached file.
I do not understand the error.  Are they important errors? How can I fix them ?

Thank you very much!!

Regards,
Lanxin

________________________________________
From: Samuele Kaplun
Sent: 30 March 2012 09:40
To: Lanxin Ma
Cc: project-invenio-general (Invenio users)
Subject: Re: test my invenio 1.0.0

Dear Lanxin,

In data venerdì, 30 marzo 2012 09.15:58, Lanxin Ma ha scritto:
> I ran
> sudo -u apache PYTHON_EGG_CACHE=/tmp/.python-eggs
> /opt/invenio/bin/inveniocfg --run-unit-tests
>
> I got many lines, but the test stopped and exited when I saw 'intbitset -
> Pythonic representation ...'
>
> intbitset - set intersection, infinite set in place ... ok
> intbitset - set iterator ... ok
> intbitset - Pythonic representation ...
>
> It seems the test did not finish correctly. DOes it mean my invenio does not
> work properly ? What should I check ?

this particular unit test consumes a big amount of RAM (about 700MB). If you
are trying to install Invenio on a system with 1GB of RAM or less, then it is
very likely that running this test will consume all the available memory and
will be consequently killed by the Linux kernel.

Anyway, it is perfectly ok to run Invenio on a machine with 1GB or less of RAM
for a small installation, and that's why, with these commits:

<http://invenio-
software.org/repo/invenio/commit/?id=f93bb2d54a090c64d343c1ad626d43fc5b30319a>

and:

<http://invenio-
software.org/repo/invenio/commit/?id=de5d9d7251ec62a10c770b63c4b26fc602cc64bd>

this test is automatically disabled when not enough RAM is available.

These commits are available in the master branch (i.e. they will be included
in Invenio 1.1).

To simply disable this particular test on your system so that you can keep on
using the unit/regression tests, just apply the patch to this email.

[...]
$ cd /opt/invenio/lib/python/invenio
$ sudo patch -p4 < /tmp/smallram.patch
$ sudo -u apache PYTHON_EGG_CACHE=/tmp/.python-eggs \
     /opt/invenio/bin/inveniocfg  --run-unit-tests
[...]

Best regards,
        Samuele

--
Samuele Kaplun
Invenio Developer ** <http://invenio-software.org/>

Attachment: unit-test-ERROR.doc
Description: unit-test-ERROR.doc

Reply via email to