Prerequisites for generating clisp

Reini Urban rurban@x-ray.at
Thu Feb 14 19:38:00 GMT 2008


Mark Harig schrieb:
> Reini Urban wrote:
>>>
>>> More on-topic: The Cygwin clisp (2.43 and 2.44) fails to pass the 
>>> test suite in the "tests" subdirectory:
>>>
>>> $ cd clisp-2.44-1/src/clisp-2.44/tests/
>>> $ clisp -q
>>
>> Wrong! You have to override the character set from your console for 
>> those tests. See the Makefile.
>> "clisp -norc -E 1:1" as minimal cmdline.
>> "make check" is preferred.
>> Just some module specific tests are not yet included in the make check 
>> testsuite and have to be done manually.
>>
>>> [1]> (load "tests)
>>> ;; Loading file /usr/src/clisp-2.44-1/src/clisp-2.44/tests/tests.lisp 
>>> ...
>>> ;; Loaded file /usr/src/clisp-2.44-1/src/clisp-2.44/tests/tests.lisp
>>> T
>>> [2]> (run-all-tests)
>>> ;;; many tests passed successfully, followed by:
>>> (PROGN (DEF-CALL-OUT C-SELF (:NAME "ffi_identity") (:ARGUMENTS (FIRST 
>>> (C-ARRAY-PTR UINT8))) (:RETURN-TYPE C-STRING) (:LANGUAGE :STDC)) 
>>> (C-SELF #(230 151 165 230 156 172 232 170 158)))
>>> ERROR!! "
>>> *** - Character #\u65E5 cannot be represented in the character set
>>>       CHARSET:CP1252
>>>
>>> The following restarts are available:
>>> ABORT          :R1      ABORT
>>> Break 1 FTEST[3]>
> 
> Thank you for the correction.  I had been following the instructions in the
> (out of date?) README file in the "tests" subdirectory.  (Note: There is
> no 'check' target in the Makefile in the "tests" subdirectory.  Instead,
> there is a 'tests' target.)
> 
> I attempted the command that you suggested (i.e., "clisp -norc -E 1:1")
> but it failed the test suite, too.  I see now that the test suite cannot be
> used in a standalone fashion, but needs to be used within the cygport
> framework.  Within that framework, the generated lisp passes all of
> the tests in the suite (i.e., none of the 10,812 tests failed).

Good.

As said, within the main build directory make check should also
work fine. From within the tests subdirectory it will not work, indeed.

I always do a
$ cd /usr/src/clisp/clisp-cvs/
$ cvs up
$ cd .build
$ make && make check

# Perform self-tests.
check : check-recompile check-fresh-line check-script check-exec-image 
check-tests

-- 
Reini



More information about the Cygwin-apps mailing list