[MacRuby-devel] experimental branch: status update
Jordan Breeding
jordan.breeding at mac.com
Mon Apr 6 06:28:03 PDT 2009
On Apr 06, 2009, at 08:09, Eloy Duran wrote:
> Ah, on that bike! (Which is a direct translation of a Dutch saying
> meaning basically just "Aha!" ;-) )
>
> Yes that sounds like an excellent idea, will do.
>
> Thanks,
> Eloy
After taking a quick look at the spec tasks and the way they run it
might be easier to:
1) test for 64-bit enabled machines, if you are on a 32-bit machine
build normally an run specs normally
2) ok you are on a 64-bit machine, during build make miniruby and
miniruby32 (which can be made with lipo from miniruby, something like
`lipo -extract i386 -output miniruby 32 miniruby`)
3) have spec now point to spec:ci and spec:ci32 on 64-bit machines
4) have the individual tasks like spec:partially_green also have a 32-
bit version of themselves
BTW, some of the tasks like spec:ci currently run mspec/bin/mspec
which has a run line of "#!/usr/bin/env ruby". To override this
shouldn't mspec/bin/mspec always get called as `./miniruby{,32} -I./
lib mspec/bin/mspec` for MacRuby testing? Just curious.
Jordan
>
> On Apr 6, 2009, at 2:54 PM, Jordan Breeding wrote:
>
>>
>> On Apr 06, 2009, at 07:50, Eloy Duran wrote:
>>
>>>>> As Laurent noted we are now passing most language specs. The
>>>>> ones that we don't pass yet are either because we simply fail,
>>>>> or these examples (tests) are simply not updated for Ruby 1.9
>>>>> yet. Which as you all know is what MacRuby is based on. This is
>>>>> an area where all of you Ruby devs can help out if you feel the
>>>>> need to get MacRuby up and running asap but don't want to work
>>>>> on the C(++) code.
>>>>>
>>>>> If there are people who would like to work on getting examples
>>>>> up-to-date, please respond and I will try to give you an outline
>>>>> on a workflow.
>>>>>
>>>>> If you just want to run the specs use the spec:ci task.
>>>>>
>>>>> One last question I have for everyone on the list. If there's
>>>>> someone with a 32 bit intel machine, could you please please run
>>>>> the spec:ci task and see if you get any failures?
>>>>> It seems that, at least, because of a 32/64 bit issue some IO
>>>>> specs are now failing on my machines and those of Laurent.
>>>>> Thanks in advance!
>>>>
>>>> I am assuming the spec:ci task uses miniruby to run the tests
>>>> currently, and will use miniruby or macruby in the future.
>>>>
>>>> Why not make a new task spec:ci32 that forces 32-bit execution on
>>>> 64-bit machines using `arch -arch i386 miniruby` instead of
>>>> `miniruby`?
>>>>
>>>> Just an idea.
>>>
>>> The question is not on how to circumvent these failures, rather
>>> the question is _if_ these failures don't occur on 32 bit machines.
>>> Laurent and I both only have 64 bit these machines and we see
>>> these failures, whereas Patrick who apparently has a 32 bit
>>> machine does not see them.
>>>
>>> The specs should ultimately pass on both archs, so we'd like
>>> feedback from other people on 32 bit on whether or not they see
>>> these failures.
>>>
>>> Eloy
>>> _______________________________________________
>>> MacRuby-devel mailing list
>>> MacRuby-devel at lists.macosforge.org
>>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>>
>> Sorry I only meant to suggest this to aid in testing as you
>> suggest. By adding a second task spec:ci32 that forces 32-bit
>> execution of tests you and Laurent could see if the problem goes
>> away when running the 32-bit code, even on a 64-bit machine.
>> Hopefully if it works for Patrick and is tied to 32-bit it is tied
>> to the code and not to the hardware, in which case spec:ci would
>> still fail on your machine and spec:ci32 would work, which would
>> then hopefully help isolate the problem with 64-bit.
>>
>> This also means spec could become a task that could test to see
>> what kind of machine you are on, if you are on a 32-bit machine
>> just run spec:ci, if you are on a 64-bit machine run spec:ci and
>> spec:ci32 so that the 32-bit build always gets tested.
>>
>> Hope that makes more sense now.
>>
>> Jordan_______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3847 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090406/8aa9b67a/attachment.bin>
More information about the MacRuby-devel
mailing list