| 1 |
#!/bin/bash |
| 2 |
set -e |
| 3 |
|
| 4 |
pkg=cppnumericalsolvers |
| 5 |
CUR_DIR=`pwd` |
| 6 |
|
| 7 |
export LC_ALL=C.UTF-8 |
| 8 |
if [ "${AUTOPKGTEST_TMP}" = "" ] ; then |
| 9 |
AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX) |
| 10 |
trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM |
| 11 |
fi |
| 12 |
|
| 13 |
cd "${AUTOPKGTEST_TMP}" |
| 14 |
cp ${CUR_DIR}/examples/* . |
| 15 |
|
| 16 |
samtools view -S -b toy.sam > toy.bam |
| 17 |
|
| 18 |
echo "Test 1 -- calDepth" |
| 19 |
gcc calDepth.c -o calDepth -I/usr/include/samtools -lbam -lm -lz -lpthread |
| 20 |
./calDepth toy.bam |
| 21 |
echo "=============== PASS ================" |
| 22 |
|
| 23 |
echo "Test 2 -- chk_indel" |
| 24 |
gcc chk_indel.c -o chk_indel -I/usr/include/samtools -lbam -lm -lz -lpthread |
| 25 |
./chk_indel toy.bam |
| 26 |
echo "=============== PASS ================" |
| 27 |
|
| 28 |
|
| 29 |
echo "Test 3 -- bam2bed" |
| 30 |
gcc bam2bed.c -o bam2bed -I/usr/include/samtools -lbam -lm -lz -lpthread |
| 31 |
./bam2bed toy.bam |
| 32 |
echo "=============== PASS ================" |
| 33 |
|
| 34 |
rm -f toy.bam |