On Tue, Jan 06, 2009 at 12:11:28PM -0800, Moritz Lenz wrote: > I know that rakudo doesn't prioritize implementation of the various > quoting constructs, but there are various things that need testing > ($*OUT.say, @*ARGS (which seems to be broken atm), command line > switches, things like RT #61980) that can't be tested without that > feature, or similar features. > > Any way to execute another command and capture the result without too > much pain would enable me to write such tests.
Execute another command is easy to handle. In fact, we already have C<run> for this. "Capture the result" is hard. In fact, it's been a long-requested feature for Parrot (especially for Parrot testing), but AFAIK Parrot hasn't provided a way to do this yet. This might have changed with the recent I/O changes, though. I think the related Parrot ticket is RT #46865, which talks about attempting to capture process output for purposes of testing. Pm