Explorar o código

test: Accept perl's Lancaster Consensus AUTHOR_TESTING variable

This is the variable perl developers expect when running author or
developer tests, honour it to make people's life easier.
Guillem Jover %!s(int64=10) %!d(string=hai) anos
pai
achega
2b1b5e2ec4
Modificáronse 3 ficheiros con 5 adicións e 4 borrados
  1. 3 3
      README
  2. 1 0
      debian/changelog
  3. 1 1
      scripts/Test/Dpkg.pm

+ 3 - 3
README

@@ -82,9 +82,9 @@ To run the test suite («make check»):
   aspell (optional, author)
   aspell-en (optional, author)
 
-  Define the environment variable DPKG_DEVEL_MODE to run the test suite
-  in development mode, to include tests that might not be pertinent during
-  normal release builds.
+  Define the environment variable DPKG_DEVEL_MODE or AUTHOR_TESTING to run
+  the test suite in development mode, to include tests that might not be
+  pertinent during normal release builds.
 
 To enable additional developer's documentation («make doc») this software
 will be needed:

+ 1 - 0
debian/changelog

@@ -77,6 +77,7 @@ dpkg (1.18.8) UNRELEASED; urgency=medium
       to 99999.
     - Add new pod-spell unit test.
     - Refactor common unit test checks for needed things into Test::Dpkg.
+    - Accept perl's Lancaster Consensus AUTHOR_TESTING variable.
   * Documentation:
     - Improve dpkg-buildpackage(1) on environment expectations.
     - Clarify the format of the db:Status-Abbrev virtual field in

+ 1 - 1
scripts/Test/Dpkg.pm

@@ -54,7 +54,7 @@ sub all_perl_files
 
 sub test_needs_author
 {
-    if (not $ENV{DPKG_DEVEL_MODE}) {
+    if (not $ENV{DPKG_DEVEL_MODE} and not $ENV{AUTHOR_TESTING}) {
         plan skip_all => 'developer test';
     }
 }