1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
From: Roland Clobus <rclobus@rclobus.nl>
Date: Wed, 26 Mar 2025 00:03:40 +0100
Subject: t/00: Ignore files deleted from git
Now it is possible to build a Debian package with 'debuild -b -us -uc',
on a clean git workspace.
---
t/00-compile-check-all.t | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/t/00-compile-check-all.t b/t/00-compile-check-all.t
index 0cb46ff..d49f433 100755
--- a/t/00-compile-check-all.t
+++ b/t/00-compile-check-all.t
@@ -22,12 +22,17 @@ $Test::Strict::TEST_WARNINGS = 1;
# We don't want to check files under external, as there might be
# missing dependencies like perltidy in OBS builds
chomp(my @external_files = qx{find external -type f});
+my @deleted_git_files = [];
+if (-d '.git' and which('git')) {
+ chomp(@deleted_git_files = qx{git ls-files --deleted});
+}
$Test::Strict::TEST_SKIP = [
't/data/tests/main.pm',
't/data/tests/product/main.pm',
't/pool/product/foo/main.pm',
'tools/lib/perlcritic/Perl/Critic/Policy/HashKeyQuotes.pm',
@external_files,
+ @deleted_git_files,
];
# Prevent any non-tracked files or files within .git (e.g. in.git/rr-cache) to
|