#!/bin/sh

pkg=trinityrnaseq
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $AUTOPKGTEST_TMP

PATH=/usr/lib/debian-med/bin/:${PATH}
export PATH

export TRINITY_HOME=/usr/lib/trinityrnaseq
cp -rs /usr/lib/trinityrnaseq/ .
rm -f trinityrnaseq/sample_data
cp -rs /usr/share/trinityrnaseq/sample_data trinityrnaseq/
cp -rs /usr/share/trinityrnaseq/trinity_ext_sample_data trinityrnaseq/
rm trinityrnaseq/trinity_ext_sample_data/test_SuperTranscript/indiv_tests/S-Lap3_flush/st.fasta
cd trinityrnaseq/sample_data
LD_PRELOAD= make test_all
cd ../trinity_ext_sample_data
LD_PRELOAD= make test
