5 use Test::More tests => 11;
6 use Data::Dump qw(dump);
10 use_ok 'CloudStore::Gearman';
12 my $hostname = `hostname -s`;
15 my $user = $ARGV[0] || 2001;
18 my ( $function, $args ) = @_;
19 ok my $o = CloudStore::Gearman->gearman_do( @_ ), $_[0];
24 my $o = gearman $hostname . '_s1_quota_get' => $user;
26 cmp_ok $o, '=~', qr/^(\d+)\s+(\d+)$/, 'format: used quota';
28 gearman( 'user_usage' => $user );
30 gearman( $hostname . '_s1_torrent_list' );
33 gearman send_file => '~u2001/foo.txt#~u2002/dir with space/file with space';
35 gearman delete => '~u2002/dir with space/file with space';
37 gearman send_file => '~u2001/foo.txt#~u2002/foo.txt';
39 gearman rename_file => '~u2002/foo.txt#bar.txt';
40 gearman rename_file => '~u2002/bar.txt#baz.txt';
42 gearman delete => '~u2002/baz.txt';