File: precommit.t

package info (click to toggle)
git-autofixup 0.003001-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 156 kB
  • sloc: perl: 1,164; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 406 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use strict;
use warnings FATAL => 'all';

use Test::More tests => 2;
use File::Temp;
use App::Git::Autofixup;
require './git-autofixup';

our $VERSION;
is($VERSION, $App::Git::Autofixup::VERSION, "versions agree");

my $tmp = File::Temp->new();
my $tmp_name = $tmp->filename();
system("perldoc -u git-autofixup >$tmp_name");
system("diff -u $tmp_name README.pod");
ok($? == 0, 'README.pod is up-to-date');