Changeset 38404 for branches/eam_branches/ohana.20150429/src/libfits/test
- Timestamp:
- Jun 6, 2015, 7:55:16 AM (11 years ago)
- Location:
- branches/eam_branches/ohana.20150429/src/libfits/test
- Files:
-
- 4 edited
-
compress.sh (modified) (3 diffs)
-
ricetest.c (modified) (1 diff)
-
tablecomp.c (modified) (1 diff)
-
zlib.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libfits/test/compress.sh
r38366 r38404 330 330 # lrnd generates rnd int between 0 and 0x7fffff (2^31 - 1 inclusive) 331 331 332 $NPT = 1000 332 # $NPT = 1000 333 $NPT = 30 333 334 create ni 0 $NPT -int 334 335 set Achar = lrnd(ni) & 0x7f … … 339 340 create nf 0 $NPT 340 341 set Ffloat = drnd(nf)*1e20 341 set Fdouble = drnd(nf)*1e 100342 set Fdouble = drnd(nf)*1e50 342 343 343 344 local format … … 346 347 $format = BIJKED 347 348 349 #$fields = Ffloat 350 #$format = E 351 348 352 write -fits test test.raw.tbl $fields -format $format 349 353 write -fits test test.cmp.tbl $fields -format $format -compress-mode $cmpmode -
branches/eam_branches/ohana.20150429/src/libfits/test/ricetest.c
r38399 r38404 16 16 char cmpdata[NBYTE]; 17 17 char outdata[NBYTE]; 18 19 // ok (1, "failure"); 18 20 19 21 if (1) { -
branches/eam_branches/ohana.20150429/src/libfits/test/tablecomp.c
r38400 r38404 11 11 int main (int argc, char **argv) { 12 12 13 plan_tests ( 286);13 plan_tests (668); 14 14 15 15 diag ("libfits tablecomp.c tests"); 16 17 // test_compress ("RICE_1"); 18 // test_compress_fullrange ("RICE_1"); 16 19 17 20 # if (1) -
branches/eam_branches/ohana.20150429/src/libfits/test/zlib.c
r38399 r38404 53 53 err = deflateInit(&zdn, 5); 54 54 // fprintf (stderr, "inp buffers cmp 0: %d => %d => %d\n", zdn.avail_in, zdn.avail_out, (int) zdn.total_out); 55 if (err != Z_OK) { fprintf (std err, "error 1: %d vs %d\n", err, Z_OK); exit (1); }55 if (err != Z_OK) { fprintf (stdout, "not ok: error 1: %d vs %d\n", err, Z_OK); exit (1); } 56 56 57 57 err = deflate(&zdn, Z_FINISH); 58 58 // fprintf (stderr, "out buffers cmp 1: %d => %d => %d\n", zdn.avail_in, zdn.avail_out, (int) zdn.total_out); 59 if (err != Z_STREAM_END) { fprintf (std err, "error 2: %d vs %d\n", err, Z_STREAM_END); exit (2); }59 if (err != Z_STREAM_END) { fprintf (stdout, "not ok: error 2: %d vs %d\n", err, Z_STREAM_END); exit (2); } 60 60 // fprintf (stderr, "out buffers cmp 2: %d => %d => %d\n", zdn.avail_in, zdn.avail_out, (int) zdn.total_out); 61 61 … … 92 92 err = inflateInit(&zup); 93 93 // fprintf (stderr, "out buffers unc 0: %d => %d => %d\n", zup.avail_in, zup.avail_out, (int) zup.total_out); 94 if (err != Z_OK) { fprintf (std err, "error 1: %d vs %d\n", err, Z_OK); exit (1); }94 if (err != Z_OK) { fprintf (stdout, "not ok: error 1: %d vs %d\n", err, Z_OK); exit (1); } 95 95 96 96 err = inflate(&zup, Z_FINISH); … … 116 116 } 117 117 } 118 118 119 return exit_status(); 119 120 }
Note:
See TracChangeset
for help on using the changeset viewer.
