lhp@nereida:~/Lperl/src/threads/knapsack/Algorithm-Knap01DP$ make dist .... lhp@nereida:~/Lperl/src/threads/knapsack/Algorithm-Knap01DP$ ls -ltr | tail -1 -rw-r--r-- 1 lhp lhp 5653 2007-05-16 16:38 Algorithm-Knap01DP-0.25.tar.gz¿Esta la distribución en condiciones de ser distribuída? El módulo Test::Kwalitee ayuda a comprobar algunos aspectos. Prepare un programa como este:
lhp@nereida:~/Lperl/src/threads/knapsack/Algorithm-Knap01DP$ cat -n kwalitee
1 #!/usr/bin/perl -w
2 use Test::More;
3
4 eval { require Test::Kwalitee; Test::Kwalitee->import() };
5
6 plan( skip_all => 'Test::Kwalitee not installed; skipping' ) if $@;
Ejecute el programa en el lugar en el que se encuentra su distribución:
hp@nereida:~/Lperl/src/threads/knapsack/Algorithm-Knap01DP$ perl kwalitee
1..13
ok 1 - extractable
ok 2 - has_readme
ok 3 - has_manifest
ok 4 - has_meta_yml
ok 5 - has_buildtool
ok 6 - has_changelog
ok 7 - no_symlinks
ok 8 - has_tests
ok 9 - proper_libs
ok 10 - no_pod_errors
ok 11 - use_strict
not ok 12 - has_test_pod
# Failed test 'has_test_pod'
# at /usr/local/share/perl/5.8.8/Test/Kwalitee.pm line 101.
# Add a test using Test::Pod to check for pod correctness.\
Doesn't include a test for pod correctness (Test::Pod)
not ok 13 - has_test_pod_coverage
# Failed test 'has_test_pod_coverage'
# at /usr/local/share/perl/5.8.8/Test/Kwalitee.pm line 101.
# Add a test using Test::Pod::Coverage to check for POD coverage. \
Doesn't include a test for pod coverage (Test::Pod::Coverage)
# Looks like you failed 2 tests of 13.
Casiano Rodríguez León
