Commit e809186d authored by Saira Hussain's avatar Saira Hussain 💬
Browse files

Add first uni tests sceleton

parent ea4941d9
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
#!/bin/bash
set -e

pkg=cdbfasta

if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
  # Double quote below to expand the temporary directory variable now versus
  # later is on purpose.
  # shellcheck disable=SC2064
#  trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
fi

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

cd "${AUTOPKGTEST_TMP}"
gunzip -r *

# Just for debugging
set -x

# Create the index file for a multi-FASTA
cdbfasta 

# Pull records based on the index file
cdbyank

# Retrieve records from the database file
cdbyank -a ''

# Retrieve specific sequence ranges
cdbyank -a '' <right_coo> <left_coo>

# Test the compression