File: run-unit-test

package info (click to toggle)
bedtools 2.31.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 57,304 kB
  • sloc: ansic: 38,507; cpp: 29,721; sh: 8,001; makefile: 663; python: 240; javascript: 16
file content (24 lines) | stat: -rwxr-xr-x 628 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh -e

if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/bedtools-test.XXXXXX`
  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi

# Copy test suite there
cp -a /usr/share/bedtools/test $AUTOPKGTEST_TMP

# Link to genomes files
cd $AUTOPKGTEST_TMP

ln -s /usr/share/bedtools/genomes

# Enter the directory and run the tests
cd $AUTOPKGTEST_TMP/test

# Configure test suite to call bedtools test elements installed on the OS,
# instead of the default fetching in the source tree.
export DATA="/usr/share/bedtools/data"
export BT="/usr/bin/bedtools"
export htsutil="$BT htsutil"
sh test.sh