IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 6, 2015, 7:55:16 AM (11 years ago)
Author:
eugene
Message:

direct copy if bscale,bzero = 1,0

Location:
branches/eam_branches/ohana.20150429/src/libfits/test
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20150429/src/libfits/test/compress.sh

    r38366 r38404  
    330330 # lrnd generates rnd int between 0 and 0x7fffff (2^31 - 1 inclusive)
    331331
    332  $NPT = 1000
     332 # $NPT = 1000
     333 $NPT = 30
    333334 create ni 0 $NPT -int
    334335 set Achar  = lrnd(ni) & 0x7f
     
    339340 create nf 0 $NPT
    340341 set Ffloat = drnd(nf)*1e20
    341  set Fdouble = drnd(nf)*1e100
     342 set Fdouble = drnd(nf)*1e50
    342343
    343344 local format
     
    346347 $format = BIJKED
    347348
     349 #$fields = Ffloat
     350 #$format = E
     351
    348352 write -fits test test.raw.tbl $fields -format $format
    349353 write -fits test test.cmp.tbl $fields -format $format -compress-mode $cmpmode
  • branches/eam_branches/ohana.20150429/src/libfits/test/ricetest.c

    r38399 r38404  
    1616  char cmpdata[NBYTE];
    1717  char outdata[NBYTE];
     18
     19  // ok (1, "failure");
    1820
    1921  if (1) {
  • branches/eam_branches/ohana.20150429/src/libfits/test/tablecomp.c

    r38400 r38404  
    1111int main (int argc, char **argv) {
    1212 
    13   plan_tests (286);
     13  plan_tests (668);
    1414
    1515  diag ("libfits tablecomp.c tests");
     16
     17  // test_compress ("RICE_1");
     18  // test_compress_fullrange ("RICE_1");
    1619
    1720# if (1)
  • branches/eam_branches/ohana.20150429/src/libfits/test/zlib.c

    r38399 r38404  
    5353    err = deflateInit(&zdn, 5);
    5454    // 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 (stderr, "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); }
    5656 
    5757    err = deflate(&zdn, Z_FINISH);
    5858    // 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 (stderr, "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); }
    6060    // fprintf (stderr, "out buffers cmp 2: %d => %d => %d\n", zdn.avail_in, zdn.avail_out, (int) zdn.total_out);
    6161
     
    9292    err = inflateInit(&zup);
    9393    // 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 (stderr, "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); }
    9595 
    9696    err = inflate(&zup, Z_FINISH);
     
    116116    }
    117117  }
     118
    118119  return exit_status();
    119120}
Note: See TracChangeset for help on using the changeset viewer.