lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


2009/9/20 Alexander Gladysh <agladysh@gmail.com>:
>> Now, I need your contribution :
>>        upload your results from various platform.
>
> I can't get it to work (at least with current git HEAD). See log below.
>
> Also I've tried to add metalua as a target, and found that my prove
> does not support --exec option:
>
> $ prove --exec
> Unknown option: exec
>

This option is available with the version of Test::Harness shipped
with Perl 5.10.

If you don't want upgrade your box, just remove this option in Makefile.
The shebang in each *.t file is used by default (currently /usr/bin/lua).

If the option --archive is not available, use the default target of
the Makefile.
That runs the Test Suite, but don't upload the result on Smolder server.

François.

> $ prove --version
> prove v1.04, using Test::Harness v2.56 and Perl v5.8.8
>
> I'm on OS X 10.5.8
>
> Alexander.
>
> lua-TestMore $ git status
> # On branch master
> nothing to commit (working directory clean)
>
> lua-TestMore $ git rev-parse HEAD
> 20de99fda573e5ac65834acdeb1ed8ad24fe6222
>
> lua-TestMore $ cd test_lua51/
> test_lua51 $ make smolder
> Unknown option: archive
> Unknown option: exec
> make: [smolder] Error 1 (ignored)
> perl -e 'use strict; use warnings; use LWP::UserAgent; my $ua =
> LWP::UserAgent->new(); $ua->env_proxy(); my $server =
> q{http://smolder.plusthree.com}; my $project_id = 12; my $url =
> $server . q{/app/developer_projects/process_add_report/} .
> $project_id; my $response = $ua->post( $url, Content_Type =>
> q{form-data}, Content      => [ architecture => q{darwin-2level},
> platform     => q{darwin}, tags         => q{darwin, darwin-2level,
> lua, Lua 5.1}, comments     => q{lua}, username     =>
> q{parrot-autobot}, password     => q{squ@wk}, project_id   =>
> $project_id, report_file  => [q{test_lua51.tar.gz}], ] ); if
> ($response->code == 302) { my ($report_id) = $response->content =~
> /Reported .(\d+) added/i; my $report_url = $server .
> q{/app/public_projects/report_details/} . $report_id; my $project_url
> = $server . q{/app/public_projects/smoke_reports/} . $project_id;
> print qq{Test report successfully sent to Smolder at\n$report_url} .
> qq{\nYou can see other recent reports at\n$project_url .\n\n}; } else
> { die qq{Could not upload report to Smolder at $server} . qq{\nHTTP
> CODE: } . $response->code . q{ (} . $response->message . qq{)\n}; }'
> Can't open file test_lua51.tar.gz: No such file or directory at
> /opt/local/lib/perl5/vendor_perl/5.8.8/LWP/UserAgent.pm line 399
> make: *** [smolder] Error 2
>
>