#!/bin/sh -e

pkg=ray

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

cd $ADTTMP

cp -a /usr/share/doc/${pkg}/test_data/* .
gunzip -r *

Ray -k 31 -p ecoli_1K_1.fq ecoli_1K_2.fq -o test1

Ray -k 31 -detect-sequence-files SampleDirectory -o test2

Ray -k 29 -desable-recycling -p SampleDirectory/s_6.first1000_1.fastq SampleDirectory/s_6.first1000_2.fastq

mpiexec -n 2 Ray -k 31 -p ecoli_1K_1.fq ecoli_1K_2.fq -o test3
