IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8796


Ignore:
Timestamp:
Sep 12, 2006, 10:27:07 AM (20 years ago)
Author:
jhoblitt
Message:

ignore .lib directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/test.pl

    r8719 r8796  
    33# Copyright (C) 2006  Joshua Hoblitt
    44#
    5 # $Id: test.pl,v 1.1 2006-08-31 04:04:20 jhoblitt Exp $
     5# $Id: test.pl,v 1.2 2006-09-12 20:27:07 jhoblitt Exp $
    66
    77use strict;
     
    1414use Cwd;
    1515
    16 my @test_files = File::Find::Rule->file->name(qr/^tap_[^.]*$/)
    17     ->maxdepth(2)
    18     ->relative
    19     ->in(getcwd());
     16my $rule = File::Find::Rule->new;
     17# ignore .lib directories
     18$rule->or($rule->new
     19        ->directory
     20        ->name('.libs')
     21        ->prune
     22        ->discard,
     23        $rule->new
     24    );
     25$rule->name(qr/^tap_[^.]*$/)
     26        ->maxdepth(2)
     27        ->relative;
     28
     29my @test_files = $rule->in(getcwd());
    2030
    2131system("prove @test_files");
Note: See TracChangeset for help on using the changeset viewer.