summaryrefslogtreecommitdiffstats
path: root/scripts/t
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@theqtcompany.com>2015-05-11 13:18:35 +0200
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2015-05-22 11:35:19 +0000
commit91b42fec5b66068515118fbb422a74d179e35ff2 (patch)
treeadfd6585b3dfce50eef64b2e56730338599c93b7 /scripts/t
parent4d684bca26a07352a04040b7822e0a3b1b3341b0 (diff)
Prospective fix for perl syntax check on Windows
Now that we run the syntax check on _all_ perl files, we may have to skip some that use modules that are simply not available on Windows. This only affects the jenkins integrator, which we don't run on Windows anyway. Change-Id: Ib7a90dbf23f5a3e9ca9f4c1c414ad58ddd40a00d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'scripts/t')
-rw-r--r--scripts/t/10-perl-syntax-check.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/t/10-perl-syntax-check.t b/scripts/t/10-perl-syntax-check.t
index c726a38e..305e5c94 100644
--- a/scripts/t/10-perl-syntax-check.t
+++ b/scripts/t/10-perl-syntax-check.t
@@ -44,6 +44,14 @@ sub should_skip
return "$filename: VMware VIX module not available";
}
+ if ($^O eq "MSWin32") {
+ if ($output =~ m{^Can't locate AnyEvent/HTTPD}) {
+ return "$filename: AnyEvent/HTTPD module not available on Windows";
+ } elsif ($output =~ m{^Base class package "Log::Dispatch::Email" is empty}) {
+ return "$filename: Log::Dispatch::Email module not available on Windows";
+ }
+ }
+
# Win32-specific scripts will fail syntax check when not on Win32.
if ($^O ne "MSWin32" && $output =~ m{^Can't locate Win32}) {
return "$filename: script looks Win32-specific and this is not Win32";