IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 7, 2007, 4:27:42 PM (19 years ago)
Author:
jhoblitt
Message:

make filesystem xattr support optional & disabled by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/t/03_server_create_object.t

    r13273 r13302  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 03_server_create_object.t,v 1.19 2007-05-05 02:25:09 jhoblitt Exp $
     5# $Id: 03_server_create_object.t,v 1.20 2007-05-08 02:27:42 jhoblitt Exp $
    66
    77use strict;
     
    1818use Test::URI;
    1919use URI::Split qw( uri_split );
     20
     21my $test_xattr = undef;
    2022
    2123my $neb = Nebulous::Server->new(
     
    3537    uri_scheme_ok($uri, 'file');
    3638
     39SKIP: {
     40    skip "requires xattr support", 1 unless $test_xattr;
    3741    is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
     42}
    3843}
    3944
     
    4853    uri_scheme_ok($uri, 'file');
    4954
     55SKIP: {
     56    skip "requires xattr support", 1 unless $test_xattr;
    5057    is(getfattr($path, 'user.nebulous_key'), '/foo', 'user.nebulous_key xattr');
     58}
    5159}
    5260
     
    6169    uri_scheme_ok($uri, 'file');
    6270
     71SKIP: {
     72    skip "requires xattr support", 1 unless $test_xattr;
    6373    is(getfattr($path, 'user.nebulous_key'), '/foo/', 'user.nebulous_key xattr');
     74}
    6475}
    6576
     
    7485    uri_scheme_ok($uri, 'file');
    7586
     87SKIP: {
     88    skip "requires xattr support", 1 unless $test_xattr;
    7689    is(getfattr($path, 'user.nebulous_key'), 'foo/', 'user.nebulous_key xattr');
     90}
    7791}
    7892
     
    87101    uri_scheme_ok($uri, 'file');
    88102
     103SKIP: {
     104    skip "requires xattr support", 1 unless $test_xattr;
    89105    is(getfattr($path, 'user.nebulous_key'), 'foo/bar', 'user.nebulous_key xattr');
     106}
    90107}
    91108
     
    100117    uri_scheme_ok($uri, 'file');
    101118
     119SKIP: {
     120    skip "requires xattr support", 1 unless $test_xattr;
    102121    is(getfattr($path, 'user.nebulous_key'), '/foo/bar', 'user.nebulous_key xattr');
     122}
    103123}
    104124
Note: See TracChangeset for help on using the changeset viewer.