At 10:39 AM -0600 1/4/05, Andy Lester wrote:
On Tue, Jan 04, 2005 at 05:17:56PM +0100, Dobrica Pavlinusic ([EMAIL PROTECTED]) wrote:
> It's perl-only module (as opposed to OpenIsis which is depreciating it's
> XS binding) and has support just for reading. It's developed for WebPAC
> (library data search engine) so I never needed ability to search Isis
> files directly.


It t/002_whatever throws many errors on Mac OS X. Line-endings?

This was true under MacPerl (MacOS 9.2.2), as well. I tried the new Biblio::Isis 0.11. Tests results are at the bottom of this message.


You might want to consider using File::Spec for specifying paths to files, especially for tests. Otherwise MacPerl (and other?) users will have to modify the test from, for example (from test 001_load.t):

isisdb => './data/winisis/BIBL',

to:

isisdb => ':data:winisis:BIBL',


Perhaps: use File::Spec; #... my $path= File::Spec->catfile('data', 'winisis', 'BIBL'); $isis = Biblio::Isis->new ( isisdb => $path, include_deleted => 1, debug => $debug, );

might work? It seems to be fine for MacPerl, but I don't know about other platforms. I ran into odd problems when I tried this using the earlier IsisDB module (when I moved the tests to different directories/hard drive partitions, results differed, weird things happened). These may have been due to other problems, which appear to have been fixed (test 2 no longer runs in a continuous loop).

I also had to comment out "use blib", which doesn't exist, since MacPerl has problems with Makefile.PL files (and Build.PL files)--installation and testing generally needs to be done manually, in my limited experience. I have gotten a blib to appear when running the Makefile for other modules, but Biblio::Isis's gives (as do MARC::Record and MARC::Lint):
# Can't locate object method "makemakerdflt" via package "1".
File '[path_to_lib]:ExtUtils:MM_MacOS.pm'; Line 201
This seems to be a MacPerl problem, though I don't understand what is wrong, or why some modules don't report this error.


Test 2 report:
##########################
1..110
ok 1 - use Biblio::Isis;
$VAR1 = bless( {
'xrf_file' => ':data:winisis:BIBL.XRF',
'hash_filter' => undef,
'fdt_file' => ':data:winisis:BIBL.FDT',
'fileMST' => \*{'Biblio::Isis::$__ANONIO__'},
'isisdb' => ':data:winisis:BIBL',
'cnt_file' => ':data:winisis:BIBL.CNT',
'fileXRF' => \*{'Biblio::Isis::$__ANONIO__'},
'include_deleted' => 1,
'mst_file' => ':data:winisis:BIBL.mst',
'debug' => undef,
'NXTMFN' => 6
}, 'Biblio::Isis' );
ok 2 - The object isa Biblio::Isis
ok 3 - count is 5
ok 4 - read_cnt
ok 5 - returns 2 elements
ok 6 - cnt 1 ORDN same
ok 7 - cnt 1 ABNORMAL same
ok 8 - cnt 1 N same
ok 9 - cnt 1 LIV same
ok 10 - cnt 1 K same
ok 11 - cnt 1 ORDF same
ok 12 - cnt 1 FMAXPOS same
ok 13 - cnt 1 NMAXPOS same
ok 14 - cnt 1 POSRX same
ok 15 - cnt 2 ORDN same
ok 16 - cnt 2 ABNORMAL same
ok 17 - cnt 2 N same
ok 18 - cnt 2 LIV same
ok 19 - cnt 2 K same
ok 20 - cnt 2 ORDF same
ok 21 - cnt 2 FMAXPOS same
ok 22 - cnt 2 NMAXPOS same
ok 23 - cnt 2 POSRX same
ok 24 - fetch 1
ok 25 - MFN 1 702:0 ^aHolder^bElizabeth
ok 26 - MFN 1 990:0 2140
ok 27 - MFN 1 990:1 88
ok 28 - MFN 1 990:2 HAY
ok 29 - MFN 1 675:0 ^a159.9
ok 30 - MFN 1 210:0 ^aNew York^cNew York University press^dcop. 1988
ok 31 - MFN 1 801:0 ^aFFZG
ok 32 - fetch 2
ok 33 - MFN 2 215:0 ^aIX, 275 str.^d23 cm
ok 34 - MFN 2 200:0 ^aPsychoanalysis and psychology^eminding the gap^fStephen Frosh
ok 35 - MFN 2 990:0 2140
ok 36 - MFN 2 990:1 89
ok 37 - MFN 2 990:2 FRO
ok 38 - MFN 2 210:0 ^aNew York^cUniversity press^d1989
ok 39 - MFN 2 700:0 ^aFrosh^bStephen
ok 40 - fetch 3
ok 41 - MFN 3 200:0 ^aPsychoanalitic politics^eJacques Lacan and Freud's French Revolution^fSherry Turkle
ok 42 - MFN 3 990:0 2140
ok 43 - MFN 3 990:1 92
ok 44 - MFN 3 990:2 LAC
ok 45 - MFN 3 210:0 ^aLondon^cFree Associoation Books^d1992
ok 46 - MFN 3 700:0 ^aTurkle^bShirlie
ok 47 - MFN 3 686:0 ^a2140
ok 48 - MFN 3 686:1 ^a2140
ok 49 - fetch 4
ok 50 - MFN 4 200:0 ^aKey studies in psychology^fRichard D. Gross
ok 51 - MFN 4 210:0 ^aLondon^cHodder & Stoughton^d1994
ok 52 - MFN 4 10:0 ^a0-340-59691-0
ok 53 - MFN 4 700:0 ^aGross^bRichard
ok 54 - fetch 5
ok 55 - MFN 5 200:0 ^aPsychology^fCamille B. Wortman, Elizabeth F. Loftus, Mary E. Marshal
ok 56 - MFN 5 225:0 ^aMcGraw-Hill series in Psychology
not ok 57 - md5 1
# Failed test (RAM Disk:002_isis.t at line 119)
# got: 'fbaa4b35c85b289e9fec15ba0f99b14a'
# expected: 'a369eff702307ba12eb81656ee0587fe'
not ok 58 - md5 2
# Failed test (RAM Disk:002_isis.t at line 119)
# got: '14f828e2049a5d8523b6301c7009a3fe'
# expected: '4fb38537a94f3f5954e40d9536b942b0'
not ok 59 - md5 3
# Failed test (RAM Disk:002_isis.t at line 119)
# got: '67d92a83434115acd98c4cb28b2784ec'
# expected: '579a7c6901c654bdeac10547a98e5b71'
not ok 60 - md5 4
# Failed test (RAM Disk:002_isis.t at line 119)
# got: 'e605bf7847b50064459fe1071bb8b4df'
# expected: '7d2adf1675c83283aa9b82bf343e3d85'
not ok 61 - md5 5
# Failed test (RAM Disk:002_isis.t at line 119)
# got: '0e27001d65f9a7d7be485c5f13e17bb8'
# expected: 'daf2cf86ca7e188e8360a185f3b43423'
ok 62 - The object isa Biblio::Isis
ok 63 - count is 5
ok 64 - read_cnt
ok 65 - returns 2 elements
ok 66 - cnt 1 ORDN same
ok 67 - cnt 1 ABNORMAL same
ok 68 - cnt 1 N same
ok 69 - cnt 1 LIV same
ok 70 - cnt 1 K same
ok 71 - cnt 1 ORDF same
ok 72 - cnt 1 FMAXPOS same
ok 73 - cnt 1 NMAXPOS same
ok 74 - cnt 1 POSRX same
ok 75 - cnt 2 ORDN same
ok 76 - cnt 2 ABNORMAL same
ok 77 - cnt 2 N same
ok 78 - cnt 2 LIV same
ok 79 - cnt 2 K same
ok 80 - cnt 2 ORDF same
ok 81 - cnt 2 FMAXPOS same
ok 82 - cnt 2 NMAXPOS same
ok 83 - cnt 2 POSRX same
ok 84 - fetch 1
ok 85 - MFN 1 702:0 ^aHolder^bElizabeth
ok 86 - MFN 1 990:0 2140
ok 87 - MFN 1 990:1 88
ok 88 - MFN 1 990:2 HAY
ok 89 - MFN 1 675:0 ^a159.9
ok 90 - MFN 1 210:0 ^aNew York^cNew York University press^dcop. 1988
ok 91 - MFN 1 801:0 ^aFFZG
ok 92 - fetch 2
ok 93 - MFN 2 215:0 ^aIX, 275 str.^d23 cm
ok 94 - MFN 2 200:0 ^aPsychoanalysis and psychology^eminding the gap^fStephen Frosh
ok 95 - MFN 2 990:0 2140
ok 96 - MFN 2 990:1 89
ok 97 - MFN 2 990:2 FRO
ok 98 - MFN 2 210:0 ^aNew York^cUniversity press^d1989
ok 99 - MFN 2 700:0 ^aFrosh^bStephen
ok 100 - fetch 3
ok 101 - MFN 3 200:0 ^aPsychoanalitic politics^eJacques Lacan and Freud's French Revolution^fSherry Turkle
ok 102 - MFN 3 990:0 2140
ok 103 - MFN 3 990:1 92
ok 104 - MFN 3 990:2 LAC
ok 105 - MFN 3 210:0 ^aLondon^cFree Associoation Books^d1992
ok 106 - MFN 3 700:0 ^aTurkle^bShirlie
ok 107 - MFN 3 686:0 ^a2140
ok 108 - MFN 3 686:1 ^a2140
ok 109 - fetch 4
ok 110 - MFN 4 200:0 ^aKey studies in psychology^fRichard D. Gross
ok 111 - MFN 4 210:0 ^aLondon^cHodder & Stoughton^d1994
ok 112 - MFN 4 10:0 ^a0-340-59691-0
ok 113 - MFN 4 700:0 ^aGross^bRichard
ok 114 - fetch 5
not ok 115 - MFN 5 200:0 1\#^aPsychology^fCamille B. Wortman, Elizabeth F. Loftus, Mary E. Marshal
# Failed test (RAM Disk:002_isis.t at line 104)
# got: 1
# expected: 0
not ok 116 - MFN 5 225:0 1\#^aMcGraw-Hill series in Psychology
# Failed test (RAM Disk:002_isis.t at line 104)
# got: 1
# expected: 0
not ok 117 - md5 1
# Failed test (RAM Disk:002_isis.t at line 119)
# got: 'fbaa4b35c85b289e9fec15ba0f99b14a'
# expected: 'f5587d9bcaa54257a98fe27d3c17a0b6'
not ok 118 - md5 2
# Failed test (RAM Disk:002_isis.t at line 119)
# got: '14f828e2049a5d8523b6301c7009a3fe'
# expected: '3be9a049f686f2a36af93a856dcae0f2'
not ok 119 - md5 3
# Failed test (RAM Disk:002_isis.t at line 119)
# got: '67d92a83434115acd98c4cb28b2784ec'
# expected: '3961be5e3ba8fb274c89c08d18df4bcc'
not ok 120 - md5 4
# Failed test (RAM Disk:002_isis.t at line 119)
# got: 'e605bf7847b50064459fe1071bb8b4df'
# expected: '5f73ec00d08af044a2c4105f7d889e24'
not ok 121 - md5 5
# Failed test (RAM Disk:002_isis.t at line 119)
# got: '0e27001d65f9a7d7be485c5f13e17bb8'
# expected: '843b9ebccf16a498fba623c78f21b6c0'
ok 122 - deleted found
ok 123 - MFN 3 is deleted
ok 124 - deleted not found
ok 125 - MFN 3 is deleted
# Looks like you planned 110 tests but ran 15 extra.


##########################



Hope this helps,
Bryan Baldus
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://home.inwave.com/eija



Reply via email to