Running tests automatically for debhelper compat levels > 12 only to prevent unexpected FTBFSes of old packages.
Andrius Merkys
4 years ago
5 | 5 | package Debian::Debhelper::Buildsystem::gradle; |
6 | 6 | |
7 | 7 | use strict; |
8 | use Debian::Debhelper::Dh_Lib; | |
8 | 9 | use Dpkg::Control; |
9 | 10 | use base 'Debian::Debhelper::Buildsystem'; |
10 | 11 | |
62 | 63 | sub test { |
63 | 64 | my $this=shift; |
64 | 65 | |
66 | # Running tests automatically for debhelper compat levels > 12 only to prevent unexpected FTBFSes of old packages | |
67 | return if compat(12, 1); | |
68 | ||
65 | 69 | if (!@_) { |
66 | 70 | push(@_, "test"); |
67 | 71 | } |