Index: trunk/Ohana/src/libfits/test/compress.sh
===================================================================
--- trunk/Ohana/src/libfits/test/compress.sh	(revision 38441)
+++ trunk/Ohana/src/libfits/test/compress.sh	(revision 41474)
@@ -1,3 +1,22 @@
 input tap.dvo
+
+## NOTE: in order to run this test suite, you must have a modern version of fpack / funpack.
+## The IPP version included in the build tree (3100-p5) does not have support for gzip2 in fpack.
+
+## Acceptable versions can be obtained by downloading a current copy
+## of CFITSIO (https://heasarc.gsfc.nasa.gov/fitsio/).
+
+## To avoid installing the library or funpack/fpack in your psconfig
+## tree, only build the code locally and do NOT install.  
+
+## in the cfitsio directory, edit the Makefile with the following changes:
+
+## LDFLAGS_BIN =	-g -O2 -Wl,-rpath,${CFITSIO_LIB} -static
+## CFLAGS =	-g -Dg77Fortran -fPIC
+## (comment out the old versions)
+
+## run psconfigure, make, make fpack funpack
+
+## after building these (static) binaries, link them into this test directory
 
 macro tests
@@ -5,4 +24,7 @@
   test_table_all_rnd
 end
+
+$FPACK = ./fpack
+$FUNPACK = ./funpack
 
 macro test_image_all 
@@ -53,11 +75,12 @@
 
  if ($cmpmode == GZIP_1)
-   exec fpack -q 0 -g -S test.raw.fits > test.fpk.fits
+   ## mana does not (yet) handle non-zero quantization 
+   exec $FPACK -q 0 -g -S test.raw.fits > test.fpk.fits
  end
  if ($cmpmode == GZIP_2)
-   exec fpack -q 0 -g2 -S test.raw.fits > test.fpk.fits
+   exec $FPACK -q 0 -g2 -S test.raw.fits > test.fpk.fits
  end
  if ($cmpmode == RICE_1)
-   exec fpack -r -S test.raw.fits > test.fpk.fits
+   exec $FPACK -r -S test.raw.fits > test.fpk.fits
  end
  # echo "load fpack version"
@@ -68,11 +91,11 @@
  tapOK {$SIGMA      < 0.001} "read fpack $cmpmode $bitpix (SIGMA = $SIGMA)"
 
- if ($cmpmode == RICE_1_0) 
-   echo "*** funpack fails on RICE_1 ****"
-   return
- end
+ # if ($cmpmode == RICE_1_0) 
+ #   echo "*** funpack fails on RICE_1 ****"
+ #   return
+ # end
 
  # echo "run funpack on our version"
- exec funpack -S test.cmp.fits > test.fun.fits
+ exec $FUNPACK -S test.cmp.fits > test.fun.fits
  rd e test.fun.fits
  set d = x - e
@@ -213,5 +236,5 @@
  if (1)
    tapEXEC /bin/cp -f test.raw.tbl test.fpk.tbl
-   tapEXEC fpack -table -F test.fpk.tbl
+   tapEXEC $FPACK -table -F test.fpk.tbl
    
    data test.fpk.tbl
@@ -236,5 +259,5 @@
  # try to run fpack on ours
  tapEXEC /bin/cp -f test.cmp.tbl test.fun.tbl
- tapEXEC funpack -F test.fun.tbl
+ tapEXEC $FUNPACK -F test.fun.tbl
 
  data test.fun.tbl
@@ -403,5 +426,5 @@
  if (1)
    tapEXEC /bin/cp -f test.raw.tbl test.fpk.tbl
-   tapEXEC fpack -table -F test.fpk.tbl
+   tapEXEC $FPACK -table -F test.fpk.tbl
    
    data test.fpk.tbl
@@ -431,5 +454,5 @@
  # try to run fpack on ours
  tapEXEC /bin/cp -f test.cmp.tbl test.fun.tbl
- tapEXEC funpack -F test.fun.tbl
+ tapEXEC $FUNPACK -F test.fun.tbl
 
  data test.fun.tbl
