summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2016-06-16 19:56:24 +0200
committerGuillem Jover <guillem@debian.org>2016-07-03 21:02:24 +0200
commit2b1b5e2ec413c077068ec838ea7b82cc6fb7ba37 (patch)
tree905f05f41cb40fb920a5e37d717ada3b0fb9d5e7
parent6278c8e98fee08f8ce0c2dc17a07a28d31eb3584 (diff)
downloaddpkg-2b1b5e2ec413c077068ec838ea7b82cc6fb7ba37.tar.gz
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.
-rw-r--r--README6
-rw-r--r--debian/changelog1
-rw-r--r--scripts/Test/Dpkg.pm2
3 files changed, 5 insertions, 4 deletions
diff --git a/README b/README
index 5254912a9..f9cdca110 100644
--- a/README
+++ b/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:
diff --git a/debian/changelog b/debian/changelog
index e0483c9f7..6b5c2e7e0 100644
--- a/debian/changelog
+++ b/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
diff --git a/scripts/Test/Dpkg.pm b/scripts/Test/Dpkg.pm
index 48b04c6d0..6d7b1ca0a 100644
--- a/scripts/Test/Dpkg.pm
+++ b/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';
}
}