[doc] add ref to RFC 7232 for conditional requests
[lighttpd.git] / tests / run-tests.pl
blob6136eac5b47bc5d2346b22ff40f0bffc50f0999e
1 #! /usr/bin/env perl
3 use strict;
5 use Test::Harness qw(&runtests $verbose);
6 $verbose = (defined $ENV{'VERBOSE'} ? $ENV{'VERBOSE'} : 0);
7 my $tests = (defined $ENV{'RUNTESTS'} ? $ENV{'RUNTESTS'} : '');
9 my $srcdir = (defined $ENV{'srcdir'} ? $ENV{'srcdir'} : '.');
11 opendir DIR, $srcdir;
12 my (@fs, $f);
13 while ($f = readdir(DIR)) {
14 if ($f =~ /^(.*)\.t$/) {
15 next if ($tests ne '' and $tests !~ /(^|\s+)$1(\s+|$)/);
16 push @fs, $srcdir.'/'.$f;
19 closedir DIR;
20 runtests (sort @fs);