File: run-unit-test

package info (click to toggle)
bedtools 2.30.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 56,604 kB
  • sloc: ansic: 38,500; cpp: 29,738; sh: 7,954; makefile: 661; python: 235; 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