summaryrefslogtreecommitdiffstats
path: root/t/scripts/profile-load.t
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/scripts/profile-load.t
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/scripts/profile-load.t')
-rwxr-xr-xt/scripts/profile-load.t27
1 files changed, 27 insertions, 0 deletions
diff --git a/t/scripts/profile-load.t b/t/scripts/profile-load.t
new file mode 100755
index 0000000..9ad0a0c
--- /dev/null
+++ b/t/scripts/profile-load.t
@@ -0,0 +1,27 @@
+#!/usr/bin/perl
+
+# Test that all profiles are loadable...
+
+use strict;
+use warnings;
+
+use Const::Fast;
+use Test::More;
+
+use Test::Lintian;
+
+const my $DOT => q{.};
+
+$ENV{'LINTIAN_BASE'} //= $DOT;
+
+# We could use a plan, but then we had to update every time we added
+# or removed a profile...
+test_load_profiles($ENV{'LINTIAN_BASE'}, $ENV{'LINTIAN_BASE'});
+
+done_testing;
+
+# Local Variables:
+# indent-tabs-mode: nil
+# cperl-indent-level: 4
+# End:
+# vim: syntax=perl sw=4 sts=4 sr et