Changeset 7296
- Timestamp:
- Jun 2, 2006, 10:38:54 AM (20 years ago)
- Location:
- trunk/psLib/test/types/verified
- Files:
-
- 2 edited
-
tst_psMetadata_01.stderr (modified) (1 diff)
-
tst_psMetadata_01.stdout (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/types/verified/tst_psMetadata_01.stderr
r4547 r7296 1 <DATE><TIME>|<HOST>|E|psMetadataReadHeader (FILE:LINENO)2 Unallowable operation: fileName is NULL.3 <DATE><TIME>|<HOST>|E|psMetadataReadHeader (FILE:LINENO)4 FITS error while opening file: missing.dat could not open the named file5 <DATE><TIME>|<HOST>|E|psMetadataReadHeader (FILE:LINENO)6 Couldn't close FITS file. FITS error: NULL input pointer7 <DATE><TIME>|<HOST>|E|psMetadataReadHeader (FILE:LINENO)8 Specified extension number, 0, is invalid. Value must be positive if no extension name is given.9 <DATE><TIME>|<HOST>|E|psMetadataReadHeader (FILE:LINENO)10 FITS error while locating header 22: tried to move past end of file11 <DATE><TIME>|<HOST>|E|psMetadataReadHeader (FILE:LINENO)12 FITS error while locating header AARGH: illegal HDU number13 <DATE><TIME>|<HOST>|E|psMetadataReadHeader (FILE:LINENO)14 Specified extension number, 0, is invalid. Value must be positive if no extension name is given. -
trunk/psLib/test/types/verified/tst_psMetadata_01.stdout
r7223 r7296 1 /***************************** TESTPOINT ******************************************\2 * TestFile: tst_psMetadata_01.c *3 * TestPoint: psMetadata{Test A - Read 1st hdr from simple FITS file} *4 * TestType: Positive *5 \**********************************************************************************/6 7 Contents of metadata list:8 Key Name: SIMPLE Key mdType: 0x00001301 Key Value: 1 Key Comment: file does conform to FITS standard9 Key Name: BITPIX Key mdType: 0x00000104 Key Value: 8 Key Comment: number of bits per data pixel10 Key Name: NAXIS Key mdType: 0x00000104 Key Value: 0 Key Comment: number of data axes11 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>12 13 Contents of metadata table:14 Key Name: NAXIS Key mdType: 0x00010020 Key Value: Key Comment:15 Key Name: NAXIS Key mdType: 0x00000104 Key Value: 0 Key Comment: number of data axes16 Key Name: SIMPLE Key mdType: 0x00010020 Key Value: Key Comment:17 Key Name: SIMPLE Key mdType: 0x00001301 Key Value: 1 Key Comment: file does conform to FITS standard18 Key Name: BITPIX Key mdType: 0x00010020 Key Value: Key Comment:19 Key Name: BITPIX Key mdType: 0x00000104 Key Value: 8 Key Comment: number of bits per data pixel20 Key Name: HISTORY Key mdType: 0x00010020 Key Value: Key Comment:21 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>22 23 ---> TESTPOINT PASSED (psMetadata{Test A - Read 1st hdr from simple FITS file} | tst_psMetadata_01.c)24 25 /***************************** TESTPOINT ******************************************\26 * TestFile: tst_psMetadata_01.c *27 * TestPoint: psMetadata{Test B - Read 2nd hdr from complex FITS file} *28 * TestType: Positive *29 \**********************************************************************************/30 31 Contents of metadata list:32 Key Name: XTENSION Key mdType: 0x00010000 Key Value: 'IMAGE ' Key Comment: IMAGE extension33 Key Name: BITPIX Key mdType: 0x00000104 Key Value: -64 Key Comment: number of bits per data pixel34 Key Name: NAXIS Key mdType: 0x00000104 Key Value: 1 Key Comment: number of data axes35 Key Name: NAXIS1 Key mdType: 0x00000104 Key Value: 64 Key Comment: length of data axis 136 Key Name: PCOUNT Key mdType: 0x00000104 Key Value: 0 Key Comment: required keyword; must = 037 Key Name: GCOUNT Key mdType: 0x00000104 Key Value: 1 Key Comment: required keyword; must = 138 Key Name: BITPIX Key mdType: 0x00000104 Key Value: -64 Key Comment: number of bits per data pixel39 Key Name: EXTNAME Key mdType: 0x00010000 Key Value: 'MY_DATA_1' Key Comment:40 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>41 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>42 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>43 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>44 45 Contents of metadata table:46 Key Name: NAXIS Key mdType: 0x00010020 Key Value: Key Comment:47 Key Name: NAXIS Key mdType: 0x00000104 Key Value: 1 Key Comment: number of data axes48 Key Name: NAXIS1 Key mdType: 0x00010020 Key Value: Key Comment:49 Key Name: NAXIS1 Key mdType: 0x00000104 Key Value: 64 Key Comment: length of data axis 150 Key Name: PCOUNT Key mdType: 0x00010020 Key Value: Key Comment:51 Key Name: PCOUNT Key mdType: 0x00000104 Key Value: 0 Key Comment: required keyword; must = 052 Key Name: XTENSION Key mdType: 0x00010020 Key Value: Key Comment:53 Key Name: XTENSION Key mdType: 0x00010000 Key Value: 'IMAGE ' Key Comment: IMAGE extension54 Key Name: GCOUNT Key mdType: 0x00010020 Key Value: Key Comment:55 Key Name: GCOUNT Key mdType: 0x00000104 Key Value: 1 Key Comment: required keyword; must = 156 Key Name: BITPIX Key mdType: 0x00010020 Key Value: Key Comment:57 Key Name: BITPIX Key mdType: 0x00000104 Key Value: -64 Key Comment: number of bits per data pixel58 Key Name: BITPIX Key mdType: 0x00000104 Key Value: -64 Key Comment: number of bits per data pixel59 Key Name: HISTORY Key mdType: 0x00010020 Key Value: Key Comment:60 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>61 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>62 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>63 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>64 Key Name: EXTNAME Key mdType: 0x00010020 Key Value: Key Comment:65 Key Name: EXTNAME Key mdType: 0x00010000 Key Value: 'MY_DATA_1' Key Comment:66 67 ---> TESTPOINT PASSED (psMetadata{Test B - Read 2nd hdr from complex FITS file} | tst_psMetadata_01.c)68 69 /***************************** TESTPOINT ******************************************\70 * TestFile: tst_psMetadata_01.c *71 * TestPoint: psMetadata{Test C - Read named hdr from complex FITS file} *72 * TestType: Positive *73 \**********************************************************************************/74 75 Contents of metadata list:76 Key Name: XTENSION Key mdType: 0x00010000 Key Value: 'IMAGE ' Key Comment: IMAGE extension77 Key Name: BITPIX Key mdType: 0x00000104 Key Value: -64 Key Comment: number of bits per data pixel78 Key Name: NAXIS Key mdType: 0x00000104 Key Value: 1 Key Comment: number of data axes79 Key Name: NAXIS1 Key mdType: 0x00000104 Key Value: 64 Key Comment: length of data axis 180 Key Name: PCOUNT Key mdType: 0x00000104 Key Value: 0 Key Comment: required keyword; must = 081 Key Name: GCOUNT Key mdType: 0x00000104 Key Value: 1 Key Comment: required keyword; must = 182 Key Name: EXTNAME Key mdType: 0x00010000 Key Value: 'MY_DATA_2' Key Comment:83 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>84 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>85 86 Contents of metadata table:87 Key Name: NAXIS Key mdType: 0x00010020 Key Value: Key Comment:88 Key Name: NAXIS Key mdType: 0x00000104 Key Value: 1 Key Comment: number of data axes89 Key Name: NAXIS1 Key mdType: 0x00010020 Key Value: Key Comment:90 Key Name: NAXIS1 Key mdType: 0x00000104 Key Value: 64 Key Comment: length of data axis 191 Key Name: PCOUNT Key mdType: 0x00010020 Key Value: Key Comment:92 Key Name: PCOUNT Key mdType: 0x00000104 Key Value: 0 Key Comment: required keyword; must = 093 Key Name: XTENSION Key mdType: 0x00010020 Key Value: Key Comment:94 Key Name: XTENSION Key mdType: 0x00010000 Key Value: 'IMAGE ' Key Comment: IMAGE extension95 Key Name: GCOUNT Key mdType: 0x00010020 Key Value: Key Comment:96 Key Name: GCOUNT Key mdType: 0x00000104 Key Value: 1 Key Comment: required keyword; must = 197 Key Name: BITPIX Key mdType: 0x00010020 Key Value: Key Comment:98 Key Name: BITPIX Key mdType: 0x00000104 Key Value: -64 Key Comment: number of bits per data pixel99 Key Name: HISTORY Key mdType: 0x00010020 Key Value: Key Comment:100 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>101 Key Name: HISTORY Key mdType: 0x00010000 Key Value: Key Comment: File modified by user 'harman' with fv on 2004-08-04T<DATE>102 Key Name: EXTNAME Key mdType: 0x00010020 Key Value: Key Comment:103 Key Name: EXTNAME Key mdType: 0x00010000 Key Value: 'MY_DATA_2' Key Comment:104 105 ---> TESTPOINT PASSED (psMetadata{Test C - Read named hdr from complex FITS file} | tst_psMetadata_01.c)106 107 /***************************** TESTPOINT ******************************************\108 * TestFile: tst_psMetadata_01.c *109 * TestPoint: psMetadata{Test D - Remove items with same name from all metadata} *110 * TestType: Positive *111 \**********************************************************************************/112 113 Removed HISTORY from all metadata from prior test. Resulting metadata:114 115 Contents of metadata list:116 Key Name: XTENSION Key mdType: 0x00010000 Key Value: 'IMAGE ' Key Comment: IMAGE extension117 Key Name: BITPIX Key mdType: 0x00000104 Key Value: -64 Key Comment: number of bits per data pixel118 Key Name: NAXIS Key mdType: 0x00000104 Key Value: 1 Key Comment: number of data axes119 Key Name: NAXIS1 Key mdType: 0x00000104 Key Value: 64 Key Comment: length of data axis 1120 Key Name: PCOUNT Key mdType: 0x00000104 Key Value: 0 Key Comment: required keyword; must = 0121 Key Name: GCOUNT Key mdType: 0x00000104 Key Value: 1 Key Comment: required keyword; must = 1122 Key Name: EXTNAME Key mdType: 0x00010000 Key Value: 'MY_DATA_2' Key Comment:123 124 Contents of metadata table:125 Key Name: NAXIS Key mdType: 0x00010020 Key Value: Key Comment:126 Key Name: NAXIS Key mdType: 0x00000104 Key Value: 1 Key Comment: number of data axes127 Key Name: NAXIS1 Key mdType: 0x00010020 Key Value: Key Comment:128 Key Name: NAXIS1 Key mdType: 0x00000104 Key Value: 64 Key Comment: length of data axis 1129 Key Name: PCOUNT Key mdType: 0x00010020 Key Value: Key Comment:130 Key Name: PCOUNT Key mdType: 0x00000104 Key Value: 0 Key Comment: required keyword; must = 0131 Key Name: XTENSION Key mdType: 0x00010020 Key Value: Key Comment:132 Key Name: XTENSION Key mdType: 0x00010000 Key Value: 'IMAGE ' Key Comment: IMAGE extension133 Key Name: GCOUNT Key mdType: 0x00010020 Key Value: Key Comment:134 Key Name: GCOUNT Key mdType: 0x00000104 Key Value: 1 Key Comment: required keyword; must = 1135 Key Name: BITPIX Key mdType: 0x00010020 Key Value: Key Comment:136 Key Name: BITPIX Key mdType: 0x00000104 Key Value: -64 Key Comment: number of bits per data pixel137 Key Name: EXTNAME Key mdType: 0x00010020 Key Value: Key Comment:138 Key Name: EXTNAME Key mdType: 0x00010000 Key Value: 'MY_DATA_2' Key Comment:139 140 ---> TESTPOINT PASSED (psMetadata{Test D - Remove items with same name from all metadata} | tst_psMetadata_01.c)141 142 /***************************** TESTPOINT ******************************************\143 * TestFile: tst_psMetadata_01.c *144 * TestPoint: psMetadata{Test E - Attempt to use null filename} *145 * TestType: Negative *146 * ExpectedErrorText: Null fileName not allowed *147 * ExpectedStatusValue: 0 *148 \**********************************************************************************/149 150 151 ---> TESTPOINT PASSED (psMetadata{Test E - Attempt to use null filename} | tst_psMetadata_01.c)152 153 /***************************** TESTPOINT ******************************************\154 * TestFile: tst_psMetadata_01.c *155 * TestPoint: psMetadata{Test F - Attempt to open nonexistant file} *156 * TestType: Negative *157 * ExpectedErrorText: FITS error while opening file: missing.dat...Couldn't close FITS file... *158 * ExpectedStatusValue: 0 *159 \**********************************************************************************/160 161 162 ---> TESTPOINT PASSED (psMetadata{Test F - Attempt to open nonexistant file} | tst_psMetadata_01.c)163 164 /***************************** TESTPOINT ******************************************\165 * TestFile: tst_psMetadata_01.c *166 * TestPoint: psMetadata{Test G - Attempt to use two null inputs} *167 * TestType: Negative *168 * ExpectedErrorText: Null extName and extNum = 0 not allowed *169 * ExpectedStatusValue: 0 *170 \**********************************************************************************/171 172 173 ---> TESTPOINT PASSED (psMetadata{Test G - Attempt to use two null inputs} | tst_psMetadata_01.c)174 175 /***************************** TESTPOINT ******************************************\176 * TestFile: tst_psMetadata_01.c *177 * TestPoint: psMetadata{Test H - Attempt to use bad extNum} *178 * TestType: Negative *179 * ExpectedErrorText: FITS error while locating header 22: tried to move past end of file *180 * ExpectedStatusValue: 0 *181 \**********************************************************************************/182 183 184 ---> TESTPOINT PASSED (psMetadata{Test H - Attempt to use bad extNum} | tst_psMetadata_01.c)185 186 /***************************** TESTPOINT ******************************************\187 * TestFile: tst_psMetadata_01.c *188 * TestPoint: psMetadata{Test I - Attempt to use bad extName} *189 * TestType: Negative *190 * ExpectedErrorText: FITS error while locating header AARGH: illegal HDU number *191 * ExpectedStatusValue: 0 *192 \**********************************************************************************/193 194 195 ---> TESTPOINT PASSED (psMetadata{Test I - Attempt to use bad extName} | tst_psMetadata_01.c)196 197 /***************************** TESTPOINT ******************************************\198 * TestFile: tst_psMetadata_01.c *199 * TestPoint: psMetadata{Test J - Read named hdr w/ invalid extnum} *200 * TestType: Negative *201 * ExpectedErrorText: If extName specified, extNum should be -1. *202 * ExpectedStatusValue: 0 *203 \**********************************************************************************/204 205 206 ---> TESTPOINT PASSED (psMetadata{Test J - Read named hdr w/ invalid extnum} | tst_psMetadata_01.c)207 208 /***************************** TESTPOINT ******************************************\209 * TestFile: tst_psMetadata_01.c *210 * TestPoint: psMetadata{Test K - Free psMetadata} *211 * TestType: Positive *212 \**********************************************************************************/213 214 215 ---> TESTPOINT PASSED (psMetadata{Test K - Free psMetadata} | tst_psMetadata_01.c)216
Note:
See TracChangeset
for help on using the changeset viewer.
