1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#!/bin/bash
set -e
CUR_DIR=`pwd`
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 ${CUR_DIR}/"tests"/* $AUTOPKGTEST_TMP
cd $AUTOPKGTEST_TMP
gunzip -r *
echo "Test 1 - Testing phybin on 112.tr"
cd t1
phybin 112.tr --print
cd ..
echo "================================="
echo "PASS"
echo "Test 2 - Testing phybin on t30_mismatched"
phybin t30_mismatched --bin
rm -f phybin_out/WARNINGS.txt
for f in phybin_out/*
do
[ -s $f ] || exit 1
done
rm -rf phybin_out
echo "=================================="
echo "PASS"
|