1
0
Fork 0
apache2/debian/perl-framework/t/apache/getfile.t
Daniel Baumann f56986e2d9
Adding debian version 2.4.63-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 11:01:27 +02:00

24 lines
515 B
Perl

use strict;
use warnings FATAL => 'all';
use Apache::Test;
use Apache::TestUtil;
use Apache::TestRequest ();
use Apache::TestCommon ();
Apache::TestCommon::run_files_test(\&verify);
sub verify {
my($ua, $url, $file) = @_;
my $flen = -s $file;
my $received = 0;
$ua->do_request(GET => $url,
sub {
my($chunk, $res) = @_;
$received += length $chunk;
});
ok t_cmp($received, $flen, "download of $url");
}