/[fuse-comp]/t/fs.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /t/fs.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 28 by dpavlin, Tue Jul 10 01:10:49 2007 UTC revision 39 by dpavlin, Sun Sep 2 12:03:52 2007 UTC
# Line 4  use warnings; Line 4  use warnings;
4    
5  my $debug = shift @ARGV;  my $debug = shift @ARGV;
6    
7  use Test::More tests => 766;  use Test::More tests => 770;
8  use File::Slurp;  use File::Slurp;
9  use IO::File;  use IO::File;
10    
# Line 63  sub file { Line 63  sub file {
63                  ok( -e "$tmp/$path" , "in tmp $tmp/$path" ) if ( $op eq '<' );                  ok( -e "$tmp/$path" , "in tmp $tmp/$path" ) if ( $op eq '<' );
64                  # check total size if not append                  # check total size if not append
65                  if ( $op ne '>>' ) {                  if ( $op ne '>>' ) {
66                          cmp_ok( -s $pack, '==', $size, "$tmp/$path = $size bytes" );                          cmp_ok( -s $pack, '<', $size, "$pack < $size bytes" );
67                  }                  }
68          } else {          } else {
69                  ok( -e "$from/$path", "on disk $from/$path" );                  ok( -e "$from/$path", "on disk $from/$path" );
# Line 129  sub multiple_rw { Line 129  sub multiple_rw {
129    
130          ok( symlink("$to/m", "$to/s"), 'symlink' );          ok( symlink("$to/m", "$to/s"), 'symlink' );
131          ok( -l "$to/s", 'is symlink' );          ok( -l "$to/s", 'is symlink' );
132    
133            ok( !symlink("fake", "$to/s"), 'symlink' );
134            ok( !symlink("$to/m", "fake"), 'symlink' );
135    
136          ok( link("$to/m", "$to/l"), 'link' );          ok( link("$to/m", "$to/l"), 'link' );
137          cmp_ok( (stat("$to/l"))[3], '==', 2, 'l has 2 links' );          cmp_ok( (stat("$to/l"))[3], '==', 2, 'l has 2 links' );
138          cmp_ok( (stat("$to/m"))[3], '==', 2, 'm has 2 links' );          cmp_ok( (stat("$to/m"))[3], '==', 2, 'm has 2 links' );

Legend:
Removed from v.28  
changed lines
  Added in v.39

  ViewVC Help
Powered by ViewVC 1.1.26