Changeset 8796 for trunk/psLib/test/test.pl
- Timestamp:
- Sep 12, 2006, 10:27:07 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/test.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/test.pl
r8719 r8796 3 3 # Copyright (C) 2006 Joshua Hoblitt 4 4 # 5 # $Id: test.pl,v 1. 1 2006-08-31 04:04:20jhoblitt Exp $5 # $Id: test.pl,v 1.2 2006-09-12 20:27:07 jhoblitt Exp $ 6 6 7 7 use strict; … … 14 14 use Cwd; 15 15 16 my @test_files = File::Find::Rule->file->name(qr/^tap_[^.]*$/) 17 ->maxdepth(2) 18 ->relative 19 ->in(getcwd()); 16 my $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 29 my @test_files = $rule->in(getcwd()); 20 30 21 31 system("prove @test_files");
Note:
See TracChangeset
for help on using the changeset viewer.
