Skip to content

Commit

Permalink
fix(tests): various changes
Browse files Browse the repository at this point in the history
- improved troubkeshooting of pod_spell_check.t
- fixed a typo on TRendMicro
- Added missing stopwords for HyperV
  • Loading branch information
omercier committed Jun 24, 2024
1 parent afdb8c5 commit 404b42e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/scripts/pod_spell_check.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use Test::More;
use Test::Spelling;

if (!@ARGV) {
die "Missing perl file to check.";
die "Usage: perl pod_spell_check.t module.pm stopwords.t";
}

my $stopword_filename='tests/resources/spellcheck/stopwords.t';
Expand All @@ -14,9 +14,10 @@ if(defined($ARGV[1])){
}
open(FILE, "<", $stopword_filename)
or die "Could not open $stopword_filename";
printf("stopword file use : ".$stopword_filename." \n");
printf("Using dictionary: ".$stopword_filename." \n");

add_stopwords(<FILE>);
close(FILE);
set_spell_cmd('hunspell -l');
all_pod_files_spelling_ok($ARGV[0]);
close(FILE);

2 changes: 1 addition & 1 deletion src/apps/trendmicro/iwsva/snmp/plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ __END__
=head1 PLUGIN DESCRIPTION
Check TendMicro Iwsva equipments in SNMP.
Check TrendMicro Iwsva equipments in SNMP.
=cut
8 changes: 7 additions & 1 deletion tests/resources/spellcheck/stopwords.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
--exclude-fs
--filter-fs
--filter-vdom
--filter-vm
--force-counters32
--force-counters64
--force-oid
Expand All @@ -13,6 +14,9 @@
--oid-display
--oid-extra-display
--oid-filter
-EncodedCommand
-InputFormat
-NoLogo
2c
ADSL
Avigilon
Expand Down Expand Up @@ -45,6 +49,7 @@ out-mcast
out-ucast
perfdata
powershell
powershell.exe
proto
psu
queue-messages-inflighted
Expand All @@ -58,8 +63,9 @@ timeframe
topic-messages-inflighted
total-oper-down
total-oper-up
TendMicro
TrendMicro
uptime
VDSL2
Veeam
VM
WSMAN

0 comments on commit 404b42e

Please sign in to comment.