Skip to content

Commit

Permalink
[-dev] Moving critic.t from t/ into xt/.
Browse files Browse the repository at this point in the history
git-svn-id: https://subversion.renater.fr/sympa/branches/sympa-6.2-branch@12165 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
  • Loading branch information
sikeda committed May 8, 2015
1 parent bfb5191 commit 4e376f4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 28 deletions.
7 changes: 5 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ check_DATA = \
t/pki/key/ca.pem \
t/pki/key/rousse_nopassword.pem \
t/pki/key/rousse_password.pem \
t/stub/Sympa/Constants.pm
t/stub/Sympa/Constants.pm \
xt/perlcriticrc
noinst_SCRIPTS = \
xt/critic.t \
xt/pod-coverage.t \
xt/pod-spelling.t \
xt/pod-syntax.t
Expand All @@ -71,8 +73,9 @@ check-local:
$(PERL) -MTest::Harness -e 'runtests @ARGV' $$TEST_FILES

authorcheck:
[ -z "$(TEST_FILES)" ] && TEST_FILES="$(noinst_SCRIPTS)"; \
PERL5LIB=src/lib; export PERL5LIB; \
$(PERL) -MTest::Harness -e 'runtests @ARGV' $(noinst_SCRIPTS)
$(PERL) -MTest::Harness -e 'runtests @ARGV' $$TEST_FILES

install-data-hook: installdir installconfig nextstep importantchanges

Expand Down
26 changes: 0 additions & 26 deletions t/critic.t

This file was deleted.

16 changes: 16 additions & 0 deletions xt/critic.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- indent-tabs-mode: t; -*-
# vim:ft=perl:et:sw=4
# $Id$

use strict;
use warnings;
use English qw(-no_match_vars);
use Test::More;

BEGIN {
eval { use Test::Perl::Critic -profile => 'xt/perlcriticrc'; };
}
plan(skip_all => 'Test::Perl::Critic required')
unless $Test::Perl::Critic::VERSION;

all_critic_ok('src/lib');
File renamed without changes.

0 comments on commit 4e376f4

Please sign in to comment.