Changeset 1372
- Timestamp:
- Aug 3, 2004, 10:42:30 AM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 5 edited
-
psLib.kdevses (modified) (1 diff)
-
src/Makefile.Globals (modified) (2 diffs)
-
src/mainpage.dox (modified) (4 diffs)
-
test/Makefile (modified) (2 diffs)
-
test/sysUtils/verified/tst_psMemory.stderr (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/psLib.kdevses
r1368 r1372 3 3 <KDevPrjSession> 4 4 <DocsAndViews NumberOfDocuments="2" > 5 <Doc0 NumberOfViews="1" URL="file:/home/desonia/psLib/src/ dataManip/psStats.c" >6 <View0 line=" 1442" Type="???" >7 <AdditionalSettings Top=" 2" Width="1104" Attach="1" Height="787" Left="2" MinMaxMode="0" />5 <Doc0 NumberOfViews="1" URL="file:/home/desonia/psLib/src/mainpage.dox" > 6 <View0 line="46" Type="???" > 7 <AdditionalSettings Top="1" Width="1305" Attach="1" Height="750" Left="1" MinMaxMode="0" /> 8 8 </View0> 9 9 </Doc0> 10 <Doc1 NumberOfViews="1" URL="file:/home/desonia/psLib/src/ dataManip/psStats.h" >11 <View0 line=" 0" Type="???" >12 <AdditionalSettings Top=" 2" Width="1104" Attach="1" Height="787" Left="2" MinMaxMode="0" />10 <Doc1 NumberOfViews="1" URL="file:/home/desonia/psLib/src/pslib.h" > 11 <View0 line="12" Type="???" > 12 <AdditionalSettings Top="1" Width="782" Attach="1" Height="583" Left="1" MinMaxMode="0" /> 13 13 </View0> 14 14 </Doc1> -
trunk/psLib/src/Makefile.Globals
r1137 r1372 5 5 ## Assumptions: Variable "prefix" already defined 6 6 ## 7 ## $Revision: 1.1 2$ $Name: not supported by cvs2svn $8 ## $Date: 2004-0 6-30 01:09:12$7 ## $Revision: 1.13 $ $Name: not supported by cvs2svn $ 8 ## $Date: 2004-08-03 20:42:30 $ 9 9 ## 10 10 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 29 29 30 30 ifndef testbindir 31 export testbindir = $(prefix)/ bin/test31 export testbindir = $(prefix)/testbin 32 32 endif 33 33 -
trunk/psLib/src/mainpage.dox
r1269 r1372 1 /** @mainpage psLib Image Processing Library 2 1 /** @mainpage psLib Image Processing Library - Release 2 3 2 4 3 @section intro Introduction 5 4 6 This library contains the Pan-STARRS Image Processing Pipeline (IPP) toolkit,7 psLib. The intended use is to provide a library of basic software functionswhich5 This library contains the Pan-STARRS Image Processing Pipeline (IPP) common library, 6 psLib. The intended use is to provide a set of basic software functions in which 8 7 can be used throughout the Pan-STARRS project to simplify programming tasks. Among 9 the benefits are: reuse of code, simplification of testing, streamlining of code, 10 and isolation of functionality that may be subject to change. 8 the benefits are: 9 - reuse of code, 10 - simplification of testing, 11 - streamlining of code, and 12 - isolation of functionality that may be subject to change. 11 13 12 14 The capabilities provided by psLib are grouped into the following areas which are 13 15 also reflected in the file system directory structure: 14 16 - System Utilities 17 - Data Collections 15 18 - Image Operations 16 - Data Collections17 19 - Data Manipulation 18 20 - Astronomy … … 21 23 data types of the earlier entries. 22 24 23 The installed code for psLib consists of header files and binary libraries in the form of static 24 (libpslib.a) and shared (libpslib.so or libpslib.dylib for OX/X.) Assuming these components 25 have been built and installed in the standard library path, psLib may be used within a program by 26 including the line #include <pslib.h> and linking with -lpslib. 27 25 The installed code for psLib consists of header files and binary libraries in 26 the form of static (libpslib.a) and shared (libpslib.so or libpslib.dylib, 27 depending on operating system.) Assuming these components have been built and 28 installed in the standard library path, psLib may be used within a program by 29 including the line #include <pslib.h> and linking using the '-lpslib' option 30 while linking. 28 31 29 32 30 33 @section extinstall Required 3rd Party Libraries 31 34 32 Before building psLib from source, several 3rd party software libraries must be installed. 33 These include: 34 - GNU Scientific Library (GSL), Available at http://www.gnu.org/software/gsl 35 - Fastest Fourier Transform in the West (FFTW), Available at http://www.fftw.org 36 - C Flexible Image Transport System Input output (CFITSIO), Available at http://heasarc.gsfc.nasa.gov/docs/software/fitsio 35 Before building psLib from source, several 3rd party software libraries must 36 be installed. These include: 37 - GNU Scientific Library (GSL) 38 - Compatibility tested with version is 1.4 39 - Available at http://www.gnu.org/software/gsl 40 - Fastest Fourier Transform in the West (FFTW), version 3 41 - Compatibility tested with version is 3.0.1 42 - Available at http://www.fftw.org 43 - C Flexible Image Transport System Input output (CFITSIO), version 2.480 or later 44 - Available at http://heasarc.gsfc.nasa.gov/docs/software/fitsio 45 - Compatibility tested with version is 2.490 46 - Versions earlier than 2.480 will not work as new functionality introduced in 2.480 is exercised 47 - Doxygen Documentation System 48 - Available at http://www.doxygen.org 49 - Compatibility tested with version 1.3.6 37 50 38 If you use a Darwin (Mac OS X) system, a dlfcn compatability library needs to be 39 installed on the system. This can be obtained from the Fink project on SourceForge 40 (the dlcompat package at http://www.sf.net/projects/fink). The Darwin 7.0 (OS X 10.3) 41 'devtools' package seems to also include dlfcn support, so explicit installation of a 42 dlfcn compatibility layer may not be required for this version of Darwin. 43 51 We recommend using the particular versions listed as compatibility tested, as 52 that is the only versions of the external libraries tested to work well with psLib. 53 Though it is quite possible that later versions of the libraries listed will also 54 work as well, care must be taken when upgrading these libraries to verify that its 55 functionality is compatible with the tested version. 44 56 45 57 @section install How to Build from Source 46 58 47 59 The psLib code should to be downloaded from either the tar file posted on: 48 https://gforge.mhpcc.hawaii.edu/projects/panstarrs/ or directly from the CVS server 49 with the following command: 60 61 https://mhpcc.pan-starrs.org/cgi-bin/viewcvs.cgi/releases/rel2 62 63 or directly from the CVS server with the following command: 50 64 <pre> 51 $ cvs -d:ext:username@ gforge.mhpcc.hawaii.edu:data/panstarrs/cvsroot co -PpsLib65 $ cvs -d:ext:username@mhpcc.pan-starrs.org:/data/panstarrs/cvsroot co -r rel2_0 psLib 52 66 </pre> 53 67 54 68 55 The source should build fromthe Makefile in the psLib/src directory. The69 The source should build using the Makefile in the psLib/src directory. The 56 70 recommended steps are: 57 71 <pre> 72 $ cd psLib/src 58 73 $ make 59 74 $ make install … … 62 77 63 78 64 @section run How to Run Tests79 @section run How to Build and Run Tests 65 80 66 Since psLib is a library, there is no executable, per se. However, to test the installation, users 67 may execute the FullUnitTest script: 81 Since psLib is a library, there is no executable, per se. However, to test the 82 installation, users may execute the the unit test suite. To build the unit test 83 suite, do the following: 68 84 <pre> 69 85 $ cd psLib/test 70 86 $ make 71 87 $ make install 72 $ FullUnitTest88 $ make installtests 73 89 </pre> 74 <i>This builds and executes test files for each of the psLib functional areas.</i>90 <i>This builds and installs the unit test files to the psLib/testbin directory.</i> 75 91 92 To run the unit test suite, do the following: 93 <pre> 94 $ cd psLib/testbin 95 $ ./FullUnitTest 96 </pre> 97 or to run a particular test 98 <pre> 99 $ ./runTest testfilename 100 </pre> 76 101 77 @section doc How to Create Documentation102 @section doc How to Create Code Documentation 78 103 79 Both HTML and man page documentation may also be generated: 104 Both HTML and man page documentation may also be generated from the inline 105 documentation in the code using the following commands: 80 106 <pre> 81 107 $ cd psLib/src … … 84 110 <i>This places documentation in psLib/docs.</i> 85 111 112 Also, a prebuilt set of documentation can be found at: 113 114 https://mhpcc.pan-starrs.org/docs/ 115 86 116 */ -
trunk/psLib/test/Makefile
r1308 r1372 3 3 ## Makefile: test 4 4 ## 5 ## $Revision: 1. 7$ $Name: not supported by cvs2svn $6 ## $Date: 2004-0 7-28 02:50:32$5 ## $Revision: 1.8 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2004-08-03 20:42:30 $ 7 7 ## 8 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 62 62 $(MAKE) --directory=dataManip install 63 63 $(MAKE) --directory=sysUtils install 64 $(MAKE) --directory=astronomy install 64 65 65 66 # Define PHONY target "distclean" which will cleanup the distribution -
trunk/psLib/test/sysUtils/verified/tst_psMemory.stderr
r1365 r1372 17 17 <DATE> <TIME> |<HOST>|I| TPOutOfMemory|Upon requesting more memory than is available, psalloc shall call the psMemExhaustedCallback. 18 18 <DATE> <TIME> |<HOST>|I|TPOutOfMemoryEx|Custom MemExhaustedCallback was invoked. 19 <DATE> <TIME> |<HOST>|A| p_psAlloc|Failed to allocate 4294966295 bytes at tst_psMemory.c:2 0619 <DATE> <TIME> |<HOST>|A| p_psAlloc|Failed to allocate 4294966295 bytes at tst_psMemory.c:228 20 20 21 21 ---> TESTPOINT PASSED (psMemory{outOfMemory} | tst_psMemory.c) … … 28 28 29 29 <DATE> <TIME> |<HOST>|I|TPReallocOutOfM|Upon requesting more memory than is available, psRealloc shall call the psMemExhaustedCallback. 30 <DATE> <TIME> |<HOST>|A| p_psRealloc|Failed to reallocate -1001 bytes at tst_psMemory.c:1 7130 <DATE> <TIME> |<HOST>|A| p_psRealloc|Failed to reallocate -1001 bytes at tst_psMemory.c:193 31 31 32 32 ---> TESTPOINT PASSED (psMemory{reallocOutOfMemory} | tst_psMemory.c) … … 70 70 <DATE> <TIME> |<HOST>|I| TPcheckLeaks|following psMemCheckLeaks call should produce one instance. 71 71 file:line ID 72 tst_psMemory.c:3 56172 tst_psMemory.c:378 1 73 73 <DATE> <TIME> |<HOST>|I| TPcheckLeaks|Testing psMemCheckLeaks again with a different leak location 74 74 <DATE> <TIME> |<HOST>|I| TPcheckLeaks|following psMemCheckLeaks call should produce one error. 75 75 file:line ID 76 tst_psMemory.c: 3861176 tst_psMemory.c:408 11 77 77 <DATE> <TIME> |<HOST>|I| TPcheckLeaks|Testing psMemCheckLeaks again with multiple leak locations. 78 78 <DATE> <TIME> |<HOST>|I| TPcheckLeaks|following psMemCheckLeaks call should produce two errors. 79 79 file:line ID 80 tst_psMemory.c:4 141681 tst_psMemory.c:4 141480 tst_psMemory.c:436 16 81 tst_psMemory.c:436 14 82 82 83 83 ---> TESTPOINT PASSED (psMemory{checkLeaks} | tst_psMemory.c) … … 115 115 <DATE> <TIME> |<HOST>|I| TPmultipleFree|Next should be an error about multiple freeing. 116 116 <DATE> <TIME> |<HOST>|E| checkMemBlock|Memory Corruption: memory block 1 was freed but still used. 117 <DATE> <TIME> |<HOST>|E|memProblemCallb|Block 1 allocated at tst_psMemory.c:5 26 freed more than once at tst_psMemory.c:531118 <DATE> <TIME> |<HOST>|A|memProblemCallb|Detected a problem in the memory system at tst_psMemory.c:5 31117 <DATE> <TIME> |<HOST>|E|memProblemCallb|Block 1 allocated at tst_psMemory.c:548 freed more than once at tst_psMemory.c:553 118 <DATE> <TIME> |<HOST>|A|memProblemCallb|Detected a problem in the memory system at tst_psMemory.c:553 119 119 120 120 ---> TESTPOINT PASSED (psMemory{multipleFree} | tst_psMemory.c)
Note:
See TracChangeset
for help on using the changeset viewer.
