Closed Tom-python0121 closed 3 years ago
see:
[root@centos8 spack-src]# vim t/chkstow.t +25
1 #!/usr/bin/perl
2 #
3 # This file is part of GNU Stow.
4 #
5 # GNU Stow is free software: you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # GNU Stow is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see https://www.gnu.org/licenses/.
17
18 #
19 # Testing cleanup_invalid_links()
20 #
21
22 use strict;
23 use warnings;
24
25 use testutil;
26 require "chkstow";
27
28 use Test::More tests => 7;
29 use Test::Output;
30 use English qw(-no_match_vars);
31
32 init_test_dirs();
33 cd("$TEST_DIR/target");
How to load testutil?
It looks to me like you did not follow the installation instructions. As a result you are missing module dependencies, as shown by this error in your output:
Can't locate IO/Scalar.pm in @INC (you may need to install the IO::Scalar module)
If you did follow the instructions, please paste the full output from doing that.
@aspiers ,you are right.Can 't locate IO/Scalar.pm in @INC lacks perl-io-stringy dependency; Can' t locate Capture/Tiny.pm in @INC lacks perl-capture-tiny dependency. Can' t locate Test/Output.pm in @INC lacks perl-test-output dependency. The perl-test-more dependency is missing in Can' t locate Test/More.pm in @INC. After the dependency is added, the test is passed.
Hello,I meet a problem about an error is reported during the execution of self-test cases.
Steps to reproduce the issue
I don't know why these errors are reported. Can you tell me why?
Information on your system