Changeset 41474 for trunk/Ohana/src/libfits/test/imagecomp.c
- Timestamp:
- Jan 24, 2021, 3:37:52 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libfits/test/imagecomp.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libfits/test/imagecomp.c
r39457 r41474 3 3 # include "tap_ohana.h" 4 4 5 # define MEM_VERBOSE FALSE 6 5 7 int test_compress (int bitpix, char *zcmptype); 6 8 int test_compress_fullrange (int bitpix, char *zcmptype); 7 9 int test_compress_fulltile (int bitpix, char *zcmptype); 8 10 9 // char *cmptype[] = {"NONE", "NONE_2", "GZIP_1", "GZIP_2", "PLIO_1", "RICE_1", "RICE_ONE", "HCOMPRESS_1", NULL};11 // XXX FULL SET : char *cmptype[] = {"NONE", "NONE_2", "GZIP_1", "GZIP_2", "PLIO_1", "RICE_1", "RICE_ONE", "HCOMPRESS_1", NULL}; 10 12 char *cmptype[] = {"NONE", "NONE_1", "NONE_2", "GZIP_1", "GZIP_2", "RICE_1", "RICE_ONE", NULL}; 13 // XXX NOT WORKING: char *cmptype[] = {"HCOMPRESS_1", NULL}; 11 14 int bitpix[] = {8, 16, 32, -32, -64, 0}; 12 15 … … 31 34 test_compress_fulltile (bitpix[j], cmptype[i]); 32 35 test_compress_fullrange (bitpix[j], cmptype[i]); 33 ok (ohana_memcheck ( TRUE), "no memory corruption");36 ok (ohana_memcheck (MEM_VERBOSE), "no memory corruption"); 34 37 } 35 38 } … … 43 46 test_compress_fulltile (bitpix[j], cmptype[i]); 44 47 test_compress_fullrange (bitpix[j], cmptype[i]); 45 ok (ohana_memcheck ( TRUE), "no memory corruption");48 ok (ohana_memcheck (MEM_VERBOSE), "no memory corruption"); 46 49 } 47 50 } … … 55 58 test_compress_fulltile (bitpix[j], cmptype[i]); 56 59 test_compress_fullrange (bitpix[j], cmptype[i]); 57 ok (ohana_memcheck ( TRUE), "no memory corruption");60 ok (ohana_memcheck (MEM_VERBOSE), "no memory corruption"); 58 61 } 59 62 } … … 138 141 } 139 142 143 // diag ("--- Image has a total of %d pixels of which %d are bad ---", NX*NY, Nbad); 140 144 ok (!Nbad, "all image pixels match"); 141 145
Note:
See TracChangeset
for help on using the changeset viewer.
