hi,
I was trying to add a test that runs some PIR code as PBC.
(so, the specified PIR code should be compiled to PBC, *THEN* it should
be run to compare output).
It seems the .pbc file is *not* created.
I'm no Perl god, so reading the Parrot::Test script is kinda hard for me.
I couldn't find any other tests that run pbc_output_is() (but
admittedly, I didnt' look for too long), so it might be this function is
never used. Parrot::Test does mention it, though.
Attached a patch that adds the tests, but SKIPPING it currently. As soon
as the bug is resolved, it can be run.
regards,
klaas-jan
Yes for these files.
> IMO, it would be enough to store the PIR only, and have that
> compiled to PBC
If you have a closer look at these .pbcs, you'll see that they are generated
on machines of very different flavours (LE, BE, 32, 64bit). The tests are
checking that one parrot can read all these .pbcs.
leo
Can you tell whether pbc_output_is() can take PIR code and compile it
during running the test? Or does is always expect the pbc file to be
present?
kjs
As said, it doesn't make sense to feed .pir code into these tests. So no /
yes.
leo
therefore, the possibility exists to create these testing functions.
it can probably be bolted on fairly quickly, but Parrot::Test is such
a mess, it may be better to de a little refactoring first to make this
easier. i don't know which i'll get to first.
so, this is an opportunity for somebody to beat me to either of those
things--patches welcome.
~jerry