Changeset 3056 for trunk/psLib/test/astronomy
- Timestamp:
- Jan 18, 2005, 3:53:00 PM (22 years ago)
- Location:
- trunk/psLib/test/astronomy
- Files:
-
- 4 added
- 7 edited
-
Makefile (modified) (4 diffs)
-
test.psTime.config1 (modified) (1 diff)
-
test.psTime.config1.template (added)
-
test.psTime.config2 (modified) (1 diff)
-
test.psTime.config2.template (added)
-
test.psTime.config3 (modified) (1 diff)
-
test.psTime.config3.template (added)
-
test.psTime.config4.template (added)
-
tst_psMetadata_07.c (modified) (3 diffs)
-
tst_psTime_04.c (modified) (2 diffs)
-
verified/tst_psTime_04.stderr (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/astronomy/Makefile
r2930 r3056 3 3 ## Makefile: test/astronomy 4 4 ## 5 ## $Revision: 1.2 5$ $Name: not supported by cvs2svn $6 ## $Date: 2005-01- 07 23:52:00 $5 ## $Revision: 1.26 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2005-01-19 01:53:00 $ 7 7 ## 8 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 16 16 include ../../src/Makefile.Globals 17 17 18 CFLAGS := -I../../include -I/usr/include/libxml $(CFLAGS) 18 CFLAGS := -I../../include \ 19 -DTIME_XML_FILE="\"$(TIME_XML_FILE)\"" \ 20 -DTIME_CONFIG_FILE="\"$(TIME_CONFIG_FILE)\"" \ 21 $(CFLAGS) 22 19 23 LDFLAGS := -L../../lib -lpslib -lpstest -lxml2 $(LDFLAGS) 20 24 … … 38 42 39 43 all: $(TARGET) 44 sed 's|PREFIX|$(prefix)|' test.psTime.config1.template > test.psTime.config1 45 sed 's|PREFIX|$(prefix)|' test.psTime.config2.template > test.psTime.config2 46 sed 's|PREFIX|$(prefix)|' test.psTime.config3.template > test.psTime.config3 47 sed 's|PREFIX|$(prefix)|' test.psTime.config4.template > test.psTime.config4 40 48 41 49 clean: … … 49 57 install test.config header_1.fits header_2.fits $(TARGET) $(testbindir) 50 58 install verified/*.stderr verified/*.stdout $(testbindir)/verified 59 install test.ser7.dat test.psTime.config1 test.psTime.config2 test.psTime.config3 test.psTime.config4 $(testbindir) 51 60 52 61 $(testbindir): -
trunk/psLib/test/astronomy/test.psTime.config1
r2364 r3056 1 1 # This configuration file specifies values required for time calculations by psLib. 2 psLib.time.tables.dir STR ../../dataxz# Directory for time tables2 psLib.time.tables.dir STR bogus # Directory for time tables 3 3 psLib.time.tables.n S32 4 # Number of time tables 4 4 psLib.time.tables.files STR ser7.dat eopc01_1900_2004.dat finals_all.dat tai_utc.dat # These are the table file names -
trunk/psLib/test/astronomy/test.psTime.config2
r2364 r3056 1 1 # This configuration file specifies values required for time calculations by psLib. 2 psLib.time.tables.dir STR ../../data # Directory for time tables2 psLib.time.tables.dir STR /home/desonia/psLib/data # Directory for time tables 3 3 psLib.time.tables.n S32 4 # Number of time tables 4 4 psLib.time.tables.files STR eopc01_1900_2004.dat finals_all.dat tai_utc.dat # These are the table file names -
trunk/psLib/test/astronomy/test.psTime.config3
r2364 r3056 1 1 # This configuration file specifies values required for time calculations by psLib. 2 psLib.time.tables.dir STR ../../data # Directory for time tables2 psLib.time.tables.dir STR /home/desonia/psLib/data # Directory for time tables 3 3 psLib.time.tables.n S32 4 # Number of time tables 4 4 psLib.time.tables.files STR ser7.dat eopc01_1900_2004.dat finals_all.dat tai_utc.dat # These are the table file names -
trunk/psLib/test/astronomy/tst_psMetadata_07.c
r2610 r3056 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $12 * @date $Date: 200 4-12-03 23:38:41$11 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-01-19 01:53:00 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 17 17 #include "pslib.h" 18 18 #include "psTest.h" 19 20 #ifndef TIME_XML_FILE 21 #define TIME_XML_FILE "../../config/psTime.xml" 22 #pragma warning TIME_XML_FILE was not defined in the makefile. 23 #endif 19 24 20 25 … … 26 31 psU32 nFail = 0; 27 32 psMetadata *md = NULL; 28 md = psMetadataParseConfigXml(md, &nFail, "../../config/psTime.xml", true);33 md = psMetadataParseConfigXml(md, &nFail, TIME_XML_FILE, true); 29 34 if (nFail != 0) { 30 35 printf("psMetadataParseConfigXml returned error %d\n", res); -
trunk/psLib/test/astronomy/tst_psTime_04.c
r2725 r3056 14 14 * @author Ross Harman, MHPCC 15 15 * 16 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $17 * @date $Date: 200 4-12-16 18:53:35$16 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2005-01-19 01:53:00 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 29 29 // Test A - Initialize time 30 30 printPositiveTestHeader(stdout, "psTime", "Test A - Initialize time"); 31 psLibInit(true, "../../config/psTime.config");31 psLibInit(true, TIME_CONFIG_FILE); 32 32 psLibFinalize(); 33 33 printFooter(stdout, "psTime", "Test A - Initialize time", true); -
trunk/psLib/test/astronomy/verified/tst_psTime_04.stderr
r2726 r3056 4 4 Failed to initialize psTime. 5 5 <DATE><TIME>|<HOST>|E|psLookupTableRead (psLookupTable.c:<LINENO>) 6 Failed to open file ../../dataxz/ser7.dat.6 Failed to open file bogus/ser7.dat. 7 7 <DATE><TIME>|<HOST>|E|psLookupTableRead (psLookupTable.c:<LINENO>) 8 Failed to open file ../../dataxz/eopc01_1900_2004.dat.8 Failed to open file bogus/eopc01_1900_2004.dat. 9 9 <DATE><TIME>|<HOST>|E|psLookupTableRead (psLookupTable.c:<LINENO>) 10 Failed to open file ../../dataxz/finals_all.dat.10 Failed to open file bogus/finals_all.dat. 11 11 <DATE><TIME>|<HOST>|E|psLookupTableRead (psLookupTable.c:<LINENO>) 12 Failed to open file ../../dataxz/tai_utc.dat.12 Failed to open file bogus/tai_utc.dat. 13 13 <DATE><TIME>|<HOST>|E|p_psTimeInit (psTime.c:<LINENO>) 14 14 Incorrect number of table files entered. Found: 3. Expected: 4.
Note:
See TracChangeset
for help on using the changeset viewer.
