[Cuis] About Squeak's FFI package ported to Cuis

H. Hirzel hannes.hirzel at gmail.com
Tue Jan 29 07:32:35 CST 2013


Juan

may I ask you to remove the FFI entry in
    https://github.com/jvuletich/Cuis/blob/master/ListOfCuisPackages.md

from the category 'Not yet tested'

and add it to

'Loads fine'

Regards

--Hannes

On 1/28/13, Germán Arduino <garduino at gmail.com> wrote:
> Excellent, thanks you guys!
>
> 2013/1/28 H. Hirzel <hannes.hirzel at gmail.com>:
>> Thank you Juan for the detailed instructions.
>>
>> Indeed now all 23 tests are green (tested in Windows 7).
>>
>> I updated the install script and merged everything into the master branch
>>
>> In
>> https://github.com/hhzl/Cuis-FFI/blob/master/README.md
>>
>> the installation script reads
>>
>> "Load Foreign Function Interface (FFI)"
>>
>>     | slash |
>>
>>     slash _ FileDirectory slash.
>>     {
>>          '..', slash, 'Cuis-FFI', slash, 'FFI.pck.st' .
>>          '..', slash, 'Cuis-FFI', slash, 'FFI-Tests.pck.st' .
>>     }
>>
>>     do:
>>
>>     [ :fileName | CodePackageFile installPackageStream:
>>
>>                  (FileStream concreteStream readOnlyFileNamed: fileName)
>>     ].
>>
>>    "Initialisation for tests"
>>    (Smalltalk at: #FFITestPoint2) perform: #defineFields.
>>    (Smalltalk at: #FFITestPoint4) perform: #defineFields.
>>
>>
>> Kind regards
>>
>> Hannes
>>
>> On 1/28/13, Juan Vuletich <juan at jvuletich.org> wrote:
>>> Hi Hannes,
>>>
>>> H. Hirzel wrote:
>>>> Hello Juan
>>>>
>>>> On 1/25/13, Juan Vuletich <juan at jvuletich.org> wrote:
>>>>
>>>>> I did
>>>>>     FFITestPoint2 defineFields.
>>>>>     FFITestPoint4 defineFields.
>>>>> And all test pass. :) Maybe they'd be called from a class side
>>>>> #initialize method?
>>>>>
>>>>
>>>> I still have errors in the FFITests.
>>>>
>>>> Which version did you use for your tests?
>>>>
>>>> http://source.squeak.org/FFI/
>>>>
>>>> Regards
>>>> Hannes
>>>>
>>>
>>> This is what I did (I'm doing it again right now to detail the steps):
>>> - In Win XP, start Cuis4.1-1576 with Eliot's Cog VM 4.0.0 (release) from
>>> Jan 14 2013.
>>> - Installed your 'Cuis-FFI-UpdateJanuary2013' as of 1/24. First
>>> FFI.pck.st, then FFI-Tests.pck.st
>>> - Open SUnitTestRunner. Run FFIPluginTests. Failures:
>>> #testBlitToAndFromExternalForm. Errors: { #testPoint2. #testPoint4.
>>> #TestPointers}
>>> - Evaluate: 'FFITestPoint2 defineFields. FFITestPoint4 defineFields'
>>> (doIt in a Workspace)
>>> - Run FFIPluginTests again. Failures: #testBlitToAndFromExternalForm.
>>> Errors: 0
>>> - Edit #testBlitToAndFromExternalForm to see what's the problem there. I
>>> see it has CR characters. I do alt-a, alt-shift-u, alt-s. to fix them.
>>> - Now all test pass.
>>>
>>> Hope this helps.
>>>
>>> Cheers,
>>> Juan Vuletich
>>>
>>>
>>>
>>> _______________________________________________
>>> Cuis mailing list
>>> Cuis at jvuletich.org
>>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>>>
>>
>> _______________________________________________
>> Cuis mailing list
>> Cuis at jvuletich.org
>> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>
>
>
> --
> Sincerely,
> Germán Arduino
> about.me/garduino
>
> _______________________________________________
> Cuis mailing list
> Cuis at jvuletich.org
> http://jvuletich.org/mailman/listinfo/cuis_jvuletich.org
>




More information about the Cuis mailing list