#!/bin/sh -e
export OMPI_MCA_plm_rsh_agent=/bin/false
export OMPI_MCA_rmaps_base_oversubscribe=1

pkg=ray

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

cd $AUTOPKGTEST_TMP

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
