Parent Directory | Revision Log
implement common (and correct) progress_bar for tftpd and httpd
1 | dpavlin | 115 | #!/usr/bin/perl |
2 | |||
3 | use warnings; | ||
4 | use strict; | ||
5 | use autodie; | ||
6 | |||
7 | use Test::More tests => 4; | ||
8 | |||
9 | use_ok 'progress_bar'; | ||
10 | |||
11 | ok( progress_bar::start(), 'start' ); | ||
12 | ok( ! progress_bar::tick( 'file', 0, 0 ), 'no tick' ); | ||
13 | my $pos = 0; | ||
14 | while ( ! progress_bar::tick( 'file', $pos++, 42 ) ) { print STDERR "."; sleep 1 }; | ||
15 | ok( $pos > 0, 'got tick' ); |
Name | Value |
---|---|
svn:executable | * |
ViewVC Help | |
Powered by ViewVC 1.1.26 |