Debian Codegraph @

debian/tests/run-unit-test

raw symbols SCIP
1 #!/bin/sh -e
2
3 if [ "$AUTOPKGTEST_TMP" = "" ] ; then
4 AUTOPKGTEST_TMP=`mktemp -d /tmp/bedtools-test.XXXXXX`
5 trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
6 fi
7
8 # Copy test suite there
9 cp -a /usr/share/bedtools/test $AUTOPKGTEST_TMP
10
11 # Link to genomes files
12 cd $AUTOPKGTEST_TMP
13
14 ln -s /usr/share/bedtools/genomes
15
16 # Enter the directory and run the tests
17 cd $AUTOPKGTEST_TMP/test
18
19 # Configure test suite to call bedtools test elements installed on the OS,
20 # instead of the default fetching in the source tree.
21 export DATA="/usr/share/bedtools/data"
22 export BT="/usr/bin/bedtools"
23 export htsutil="$BT htsutil"
24 sh test.sh