Subject: | Net::Radius::Client test fails due to missing dictionary file |
Trying to install Net::Radius::Client, make test fails with:
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/1.t .. 1/3 Couldn't read dictionary dictionary
t/1.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/3 subtests
Test Summary Report
-------------------
t/1.t (Wstat: 512 Tests: 1 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 3 tests but ran 1.
Files=1, Tests=1, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.03 cusr 0.00 csys = 0.05 CPU)
Result: FAIL
Failed 1/1 test programs. 0/1 subtests failed.
The fix is very simple. Copy the following file from the Net::Radius installation package (i.e. extracted from Net-Radius-2.103.tar.gz) into the Net-Radius-Client-n.nn directory where make test is being run:
Net-Radius-2.103/dicts/dictionary
With that file in place, make test passes.