Changeset 2681 for trunk/psLib/test/astronomy
- Timestamp:
- Dec 9, 2004, 4:50:16 PM (22 years ago)
- Location:
- trunk/psLib/test/astronomy
- Files:
-
- 5 edited
-
Makefile (modified) (2 diffs)
-
tst_psMetadataIO.c (modified) (2 diffs)
-
tst_psMetadata_01.c (modified) (2 diffs)
-
tst_psTime_01.c (modified) (10 diffs)
-
tst_psTime_03.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/Makefile
r2521 r2681 3 3 ## Makefile: test/astronomy 4 4 ## 5 ## $Revision: 1.2 3$ $Name: not supported by cvs2svn $6 ## $Date: 2004-1 1-30 00:28:36$5 ## $Revision: 1.24 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2004-12-10 02:50:15 $ 7 7 ## 8 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 31 31 tst_psMetadata_06 \ 32 32 tst_psMetadata_07 \ 33 tst_psCoord \34 33 tst_psAstrometry \ 35 34 tst_psAstrometry01 35 # tst_psCoord \ 36 36 37 37 OBJS = $(addprefix builddir/,$(addsuffix .o,$(TARGET))) -
trunk/psLib/test/astronomy/tst_psMetadataIO.c
r2607 r2681 13 13 * @author Ross Harman, MHPCC 14 14 * 15 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $16 * @date $Date: 2004-12- 03 23:19:07$15 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 16 * @date $Date: 2004-12-10 02:50:15 $ 17 17 * 18 18 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 41 41 psMetadataItem *entryChild = NULL; 42 42 43 psList SetIterator(metadataItemList, PS_LIST_HEAD);44 entryChild = psListGetCurrent(metadataItemList); 45 while ( entryChild!= NULL) {43 psListIterator* iter = psListIteratorAlloc(metadataItemList, PS_LIST_HEAD); 44 45 while ( (entryChild=psListGetNext(iter)) != NULL) { 46 46 printMetadataItem(entryChild, spaces); 47 entryChild = psListGetNext(metadataItemList);48 47 } 48 49 psFree(iter); 49 50 } 50 51 -
trunk/psLib/test/astronomy/tst_psMetadata_01.c
r2607 r2681 18 18 * @author Ross Harman, MHPCC 19 19 * 20 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $21 * @date $Date: 2004-12- 03 23:19:07$20 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 21 * @date $Date: 2004-12-10 02:50:15 $ 22 22 * 23 23 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 46 46 psMetadataItem *entryChild = NULL; 47 47 48 psList SetIterator(metadataItemList, PS_LIST_HEAD);49 entryChild = psListGetCurrent(metadataItemList); 50 while ( entryChild!= NULL) {48 psListIterator* iter = psListIteratorAlloc(metadataItemList, PS_LIST_HEAD); 49 50 while ( (entryChild=psListGetNext(iter)) != NULL) { 51 51 printMetadataItem(entryChild, spaces); 52 entryChild = psListGetNext(metadataItemList); 53 } 52 } 53 54 psFree(iter); 55 54 56 } 55 57 -
trunk/psLib/test/astronomy/tst_psTime_01.c
r2526 r2681 23 23 * @author Ross Harman, MHPCC 24 24 * 25 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $26 * @date $Date: 2004-1 1-30 01:14:08$25 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 26 * @date $Date: 2004-12-10 02:50:15 $ 27 27 * 28 28 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 55 55 // Test B - Print test time 56 56 printPositiveTestHeader(stdout,"psTime", "Print test time"); 57 printf("Test time: Seconds = %lld Microseconds = %u\n", testTime->sec, testTime->usec); 57 printf("Test time: Seconds = %lld Microseconds = %u\n", 58 (long long int)testTime->sec, 59 testTime->usec); 58 60 printFooter(stdout, "psTime", "Print test time", true); 59 61 … … 75 77 psTime *timeD = NULL; 76 78 timeD = psTimeFromISOTime(isoString); 77 printf("psTime: Seconds = %lld Microseconds = %u\n", timeD->sec, timeD->usec); 79 printf("psTime: Seconds = %lld Microseconds = %u\n", 80 (long long int)timeD->sec, 81 timeD->usec); 78 82 psFree(isoString); 79 83 psFree(timeD); … … 90 94 timeE = psTimeConvert(timeE, PS_TIME_UTC); 91 95 psFree(timeE); 92 printf("psTime: Seconds = %lld Microseconds = %u\n", timeE->sec, timeE->usec); 96 printf("psTime: Seconds = %lld Microseconds = %u\n", 97 (long long int)timeE->sec, 98 timeE->usec); 93 99 printFooter(stdout, "psTime", "Convert psTime time to UTC time", true); 94 100 … … 103 109 timeF = psTimeConvert(timeF, PS_TIME_TAI); 104 110 psFree(timeF); 105 printf("psTime: Seconds = %lld Microseconds = %u\n", timeF->sec, timeF->usec); 111 printf("psTime: Seconds = %lld Microseconds = %u\n", 112 (long long int)timeF->sec, 113 timeF->usec); 106 114 printFooter(stdout, "psTime", "Convert UTC time to psTime", true); 107 115 … … 119 127 psTime *timeH = NULL; 120 128 timeH = psTimeFromMJD(mjdTime); 121 printf("psTime: Seconds = %lld Microseconds = %u\n", timeH->sec, timeH->usec); 129 printf("psTime: Seconds = %lld Microseconds = %u\n", 130 (long long int)timeH->sec, 131 timeH->usec); 122 132 psFree(timeH); 123 133 printFooter(stdout, "psTime", "Convert MJD time to psTime", true); … … 136 146 psTime *timeJ = NULL; 137 147 timeJ = psTimeFromJD(jdTime); 138 printf("psTime: Seconds = %lld Microseconds = %u\n", timeJ->sec, timeJ->usec); 148 printf("psTime: Seconds = %lld Microseconds = %u\n", 149 (long long int)timeJ->sec, 150 timeJ->usec); 139 151 psFree(timeJ); 140 152 printFooter(stdout, "psTime", "Convert JD time to psTime", true); … … 145 157 struct timeval timevalTime; 146 158 timevalTime = psTimeToTimeval(testTime); 147 printf("timevalTime: Seconds = %lld Microseconds = %lld\n", (psS64)timevalTime.tv_sec, (psS64)timevalTime.tv_usec); 159 printf("timevalTime: Seconds = %lld Microseconds = %lld\n", 160 (long long int)timevalTime.tv_sec, 161 (long long int)timevalTime.tv_usec); 148 162 printFooter(stdout, "psTime", "Convert psTime to timeval time", true); 149 163 … … 153 167 psTime *timeL = NULL; 154 168 timeL = psTimeFromTimeval(&timevalTime); 155 printf("psTime: Seconds = %lld Microseconds = %u\n", timeL->sec, timeL->usec); 169 printf("psTime: Seconds = %lld Microseconds = %u\n", 170 (long long int)timeL->sec, 171 timeL->usec); 156 172 psFree(timeL); 157 173 printFooter(stdout, "psTime", "Convert timeval time to psTime", true); … … 176 192 psTime *timeN = NULL; 177 193 timeN = psTimeFromTM(tmTime); 178 printf("psTime: Seconds = %lld Microseconds = %u\n", timeN->sec, timeN->usec); 194 printf("psTime: Seconds = %lld Microseconds = %u\n", 195 (long long int)timeN->sec, 196 timeN->usec); 179 197 psFree(timeN); 180 198 psFree(tmTime); -
trunk/psLib/test/astronomy/tst_psTime_03.c
r2392 r2681 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 4$ $Name: not supported by cvs2svn $15 * @date $Date: 2004-1 1-22 20:52:45 $14 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2004-12-10 02:50:15 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 23 23 24 24 #define PRINT_TIME(TEXT,TIME) \ 25 printf("%s Seconds = %lld Microseconds = %u\n", TEXT, TIME->sec, TIME->usec);25 printf("%s Seconds = %lld Microseconds = %u\n", TEXT, (long long int)TIME->sec, TIME->usec); 26 26 27 27 psS32 main(psS32 argc, char* argv[])
Note:
See TracChangeset
for help on using the changeset viewer.
