Leitz has asked for the wisdom of the Perl Monks concerning the following question:
Fellow supplicants, I seek wisdom. I'm seeing two related issues when building my first module. My assumption is "operator error", but I'm not sure where to look. The code:
https://github.com/LeamHall/bookbot
The first issue is that "./Build test" doesn't recursively go into the "t" directory. I have tests in "t/lib/*.t", and they do not get run with "./Build test".
The second issue is that "./Build disttest" ignores the MANIFEST.SKIP directive to not expect the archive directories. In MANIFEST.SKIP:
The error:# Avoid archives of this distribution \bbookbot-[\d\.\_]+ \bbookbot-.*\*
./Build disttest Created META.yml and META.json Creating bookbot-0.01 Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'bookbot' version '0.01' Building bookbot t/00-load.t ....... 1/? # Testing Book 0.03, Perl 5.030000, /usr/bin/p +erl t/00-load.t ....... ok t/manifest.t ...... 1/1 # Failed test at /usr/local/share/perl/5.30.0/Test/CheckManifest.pm +line 190. # got: 0 # expected: 1 # The following files are not named in the MANIFEST file: /home/leam/l +ang/git/LeamHall/bookbot/bookbot-0.01/_build/auto_features, /home/lea +m/lang/git/LeamHall/bookbot/bookbot-0.01/_build/build_params, /home/l +eam/lang/git/LeamHall/bookbot/bookbot-0.01/_build/cleanup, /home/leam +/lang/git/LeamHall/bookbot/bookbot-0.01/_build/config_data, /home/lea +m/lang/git/LeamHall/bookbot/bookbot-0.01/_build/features, /home/leam/ +lang/git/LeamHall/bookbot/bookbot-0.01/_build/magicnum, /home/leam/la +ng/git/LeamHall/bookbot/bookbot-0.01/_build/notes, /home/leam/lang/gi +t/LeamHall/bookbot/bookbot-0.01/_build/prereqs, /home/leam/lang/git/L +eamHall/bookbot/bookbot-0.01/_build/runtime_params # MANIFEST: /home/leam/lang/git/LeamHall/bookbot/bookbot-0.01/MANIFEST # Looks like you failed 1 test of 1. t/manifest.t ...... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/pod-coverage.t .. ok t/pod.t ........... ok Test Summary Report ------------------- t/manifest.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=4, Tests=10, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.39 cusr + 0.03 csys = 0.46 CPU) Result: FAIL Failed 1/4 test programs. 1/10 subtests failed. Error executing 'Build test' in dist directory at /usr/share/perl5/Mod +ule/Build/Base.pm line 4086.
Chronicler: The Domici War (domiciwar.net)
General Ne'er-do-well (github.com/LeamHall)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Issues with first module build
by kcott (Archbishop) on Jan 05, 2021 at 02:48 UTC | |
by Leitz (Scribe) on Jan 05, 2021 at 08:47 UTC | |
by kcott (Archbishop) on Jan 05, 2021 at 18:32 UTC | |
by Leitz (Scribe) on Jan 05, 2021 at 18:56 UTC | |
by shmem (Chancellor) on Jan 05, 2021 at 19:02 UTC | |
by kcott (Archbishop) on Jan 05, 2021 at 16:12 UTC | |
by stevieb (Canon) on Jan 05, 2021 at 09:04 UTC | |
by Leitz (Scribe) on Jan 05, 2021 at 10:22 UTC | |
by hippo (Archbishop) on Jan 05, 2021 at 10:38 UTC | |
by stevieb (Canon) on Jan 05, 2021 at 16:20 UTC | |
by stevieb (Canon) on Jan 05, 2021 at 16:24 UTC | |
|
Re: Issues with first module build
by stevieb (Canon) on Jan 05, 2021 at 09:09 UTC | |
|
Re: Issues with first module build
by shmem (Chancellor) on Jan 05, 2021 at 00:45 UTC | |
by kcott (Archbishop) on Jan 05, 2021 at 02:27 UTC | |
by shmem (Chancellor) on Jan 05, 2021 at 02:54 UTC | |
by Leitz (Scribe) on Jan 05, 2021 at 00:57 UTC | |
by shmem (Chancellor) on Jan 05, 2021 at 01:00 UTC |