File: build-lib

package info (click to toggle)
libtabixpp 1.1.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: cpp: 216; makefile: 71; lisp: 51; sh: 16
file content (21 lines) | stat: -rwxr-xr-x 501 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
# autopkgtest check: Build and run a program against libtabixpp
# Author: Sascha Steinbiss <sascha@steinbiss.name>
set -e

SRC=$(pwd)/main.cpp
DATA=$(pwd)/debian/tests/Lmajor.gff3.1
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR
g++ -O2 -o tabix++2 $SRC -ltabixpp -lhts
[ -x tabix++2 ]
echo "build: OK"

fgrep -v '###' $DATA > ./Lmajor.gff3.1
bgzip Lmajor.gff3.1
tabix -p gff Lmajor.gff3.1.gz
ls
./tabix++2 Lmajor.gff3.1.gz > 1
ldd tabix++2
echo "run: OK"