Changeset 23640
- Timestamp:
- Mar 31, 2009, 3:26:37 PM (17 years ago)
- Location:
- trunk/Nebulous/scripts
- Files:
-
- 1 added
- 1 edited
-
ptest.pl (modified) (2 diffs)
-
test_prog_simple.pl (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/scripts/ptest.pl
r23377 r23640 18 18 $| = 1; 19 19 20 my $prog_file = shift; 20 21 my $key = shift || 'foobar'; 21 22 my $kids = shift || 1; 22 23 24 require $prog_file; 23 25 $key = "/tmp/" . $key; 24 26 … … 72 74 } 73 75 74 # select $sock;75 # $| = 1;76 77 # child78 76 my $fname = "${key}_$id"; 79 77 80 78 my $neb = Nebulous::Client::Bench->new( 81 79 # proxy => 'http://localhost:80/nebulous' 82 proxy => 'http:// alala:80/nebulous',83 # sock => \*STDOUT,80 proxy => 'http://ipp008:80/nebulous' 81 # proxy => 'http://alala:80/nebulous', 84 82 ); 85 83 86 87 while (1) { 88 # print $sock "$$ : i'm a little tea pot using key: $fname\n"; 89 my $fh = $neb->open_create( $fname ) 90 or child_die($sock, "can't create file $fname"); 91 close $fh; 92 93 $fh = $neb->open( $fname, 'read' ) 94 or child_die("can't open file"); 95 close $fh; 96 97 $neb->lock( $fname, 'read' ); 98 $neb->unlock( $fname, 'read' ); 99 $neb->replicate( $fname ); 100 $neb->cull( $fname ); 101 $neb->find( $fname ); 102 $neb->copy( $fname, $fname . "_copy" ); 103 $neb->move( $fname, $fname . "_move" ); 104 $neb->delete( $fname . "_copy" ); 105 $neb->delete( $fname . "_move" ); 106 107 # print $sock "$$ : all done!\n"; 108 } 109 110 return 1; 84 test_prog($neb, $fname); 111 85 } 112 86
Note:
See TracChangeset
for help on using the changeset viewer.
