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/>
diff --git a/modules/miscutil/lib/intbitset_tests.py b/modules/miscutil/lib/intbitset_tests.py
index 7a23834..e244e6f 100644
--- a/modules/miscutil/lib/intbitset_tests.py
+++ b/modules/miscutil/lib/intbitset_tests.py
@@ -72,7 +72,8 @@ class IntBitSetTest(unittest.TestCase):
(intbitset.__ne__, set.__ne__, lambda x, y: cmp(x, y) != 0),
]
- self.big_examples = [list(intbitset(CFG_INTBITSET_BIG_EXAMPLE))]
+ #self.big_examples = [list(intbitset(CFG_INTBITSET_BIG_EXAMPLE))]
+ self.big_examples = [] ## NOTE: disabled for small systems
self.corrupted_strdumps = [
"ciao",