#!/bin/bash
set -e

pkg=damapper

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

#cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"

cd "${AUTOPKGTEST_TMP}"

#do_stuff_to_test_package#
rangen 1.0 -r2020 >R.fasta           
fasta2DAM R R.fasta           
dsimulator R -c20. -r2020 >G.fasta   
fasta2DB G G.fasta            
                    
DBsplit -s11 G                
DBdust G.1                    
DBdust G.2                


rangen 1.0 -r2021 >R1.fasta           
fasta2DAM R1 R1.fasta           
dsimulator R1 -c20. -r2021 >G1.fasta   
fasta2DB G1 G1.fasta            
                    
DBsplit -s11 G1                
DBdust G.1                    
DBdust G.2                



HPC.damapper -mdust -t5 G G1 | sh -v


# Since the output is not consistent.
#It cannot be compared with the reference. 

