#!/bin/sh -e

pkg=pirs
testbin=gcContCvgBias

if [ "$ADTTMP" = "" ] ; then
  ADTTMP=$(mktemp -d /tmp/${pkg}-${testbin}-test.XXXXXX)
  # trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
fi

cd $ADTTMP

cp -a /usr/share/doc/${pkg}/examples/${testbin}/* .
# find . -type f -name "*.gz" -exec gunzip \{\} \;
gc_coverage_bias -r gcdeptestref.fa.gz -o test -w 100,200 --gcdump --depwindump gcdeptest.depth.gz
gc_coverage_bias_plot test_100.dat
gc_coverage_bias_plot test_200.dat
ls -l test*
