5 use Test::More tests => 5;
6 use Data::Dump qw(dump);
10 use_ok 'CloudStore::Gearman';
12 my $hostname = `hostname -s`;
15 my $user = $ARGV[0] || 2001;
17 ok my $o = CloudStore::Gearman->gearman_do( $hostname . '_s1_quota_get' => $user ), 'quota_get';
19 cmp_ok $o, '=~', qr/^(\d+)\s+(\d+)$/, 'format: used quota';
21 ok $o = CloudStore::Gearman->gearman_do( 'user_usage' => $user ), 'user_usage';
24 ok $o = CloudStore::Gearman->gearman_do( $hostname . '_s1_torrent_list' ), 'torrent_list';