File: run-unit-test

package info (click to toggle)
phybin 0.3-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 608 kB
  • sloc: haskell: 2,141; sh: 584; makefile: 71
file content (32 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (3)
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"