#1 Installation does not pass unit tests

closed
Glen Wilder
None
5
2004-12-20
2001-05-31
No

I followed the instruction to install pyprolog on a
RedHat 6.2 machine running python 2.1 and swipl 4.0.6

I had to tweak Setup.in a bit to match my settings
(swipl version, and machine architecture), but
eventually got the thing to compile.

Now the unittest fail (btw, in INSTALL, you should set
the PYTHONPATH to ../.. to be able to launch test_all
from the testsuite directory.

[alf@orion pyprolog]$ python2
testsuite/test_all.py
PYTHONPATH=['testsuite', '/home/alf',
'/usr/lib/python2.1', '/usr/lib/python2.1/plat-linux2',
'/usr/lib/python2.1/lib-tk',
'/usr/lib/python2.1/lib-dynload',
'/usr/lib/python2.1/site-packages']
...................F...............ERROR: source_sink
`calc' does not exist
ERROR: Undefined procedure: calc/2
ERROR: However, there are definitions for:
ERROR: call/1
ERROR: call/2
ERROR: call/3
ERROR: call/4
ERROR: call/5
ERROR: call/6
Exception: (1) calc('1+2', _G1905) ? creep
F Call: (1) member(_G1924, [alpha, beta, gamma]) ?
creep
Exit: (1) member(alpha, [alpha, beta, gamma]) ?
creep
Exit: (1) member(beta, [alpha, beta, gamma]) ? creep
Exit: (1) member(gamma, [alpha, beta, gamma]) ?
creep
Fail: (1) member(_G1924, [alpha, beta, gamma]) ?
creep
............. Call: (1) member(_G2021, [alpha, beta,
gamma]) ? creep
Exit: (1) member(alpha, [alpha, beta, gamma]) ?
creep
...
======================================================================
FAIL: test_get_chars (test_pterm.test_PTerm)
----------------------------------------------------------------------
Traceback (most recent call last):
File "testsuite/test_pterm.py", line 240, in
test_get_chars
assert self.t5.get_chars(swipl.CVT_WRITE |
swipl.BUF_RING) == 'f', msg
AssertionError: get_chars() is wrong.
======================================================================
FAIL: test_call_predicate (test_pquery.test_PQuery)
----------------------------------------------------------------------
Traceback (most recent call last):
File "testsuite/test_pquery.py", line 37, in
test_call_predicate
assert r, msg
AssertionError: call_predicate is wrong.
----------------------------------------------------------------------
Ran 52 tests in 6.917s

FAILED (failures=2)

I'll give it more work later today.

Cheers

Alexandre Fayolle
Logilab

Discussion

  • Gerhard Gonter
    Gerhard Gonter
    2004-11-16

    Logged In: YES
    user_id=6920

    the test_all.py script is best called with the test(suite)
    directory as the current working directory. "cd testsuite"
    do the trickl.

     
  • Glen Wilder
    Glen Wilder
    2004-12-20

    • assigned_to: nobody --> gwilder
    • status: open --> closed