~ubuntu-branches/ubuntu/quantal/memcached/quantal

« back to all changes in this revision

Viewing changes to t/whitespace.t

  • Committer: Bazaar Package Importer
  • Author(s): David Martínez Moreno
  • Date: 2009-10-16 15:09:43 UTC
  • mfrom: (1.1.6 upstream) (3.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20091016150943-0rhh8x206ebgwzeu
Tags: 1.4.2-1
* New upstream release, primarily bugfixes, some of them critical, hence
  the urgency:
  - Reject keys larger than 250 bytes in the binary protocol.
  - Bounds checking on stats cachedump.
  - Binary protocol set+cas wasn't returning a new cas ID.
  - Binary quitq didn't actually close the connection
  - Slab boundary checking cleanup (bad logic in unreachable code)
  - Get hit memory optimizations
  - Disallow -t options that cause the server to not work
  - Killed off incomplete slab rebalance feature.
* debian/patches:
  - 01_init_script_compliant_with_LSB.patch: Remade as upstream applied a
    whitespace cleanup script that broke the patch.
  - 02_manpage_additions.patch: Added missing parameters to the memcached
    manpage.
* Removed TODO from debian/docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
BEGIN {
7
7
    chdir "$Bin/.." or die;
8
 
    @files = grep {! /^config.h$/ } (glob("*.h"), glob("*.c"), glob("*.ac"), "memcached.spec");
 
8
 
 
9
    my @exempted = qw(Makefile.am ChangeLog doc/Makefile.am);
 
10
    push(@exempted, glob("doc/*.xml"));
 
11
    push(@exempted, glob("doc/xml2rfc/*.xsl"));
 
12
    my %exempted_hash = map { $_ => 1 } @exempted;
 
13
 
 
14
    my @stuff = split /\0/, `git ls-files -z -c -m -o --exclude-standard`;
 
15
    @files = grep { ! $exempted_hash{$_} } @stuff;
 
16
 
 
17
    # We won't find any files if git isn't installed.  If git isn't
 
18
    # installed, they're probably not doing any useful development, or
 
19
    # at the very least am will clean up whitespace when we receive
 
20
    # their patch.
 
21
    unless (@files) {
 
22
        use Test::More;
 
23
        plan skip_all => "Skipping tests probably because you don't have git.";
 
24
        exit 0;
 
25
    }
9
26
}
 
27
 
10
28
use Test::More tests => scalar(@files);
11
29
 
12
30
foreach my $f (@files) {