File: build-lib

package info (click to toggle)
fermi-lite 0.1%2Bgit20221215.85f159e-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 748 kB
  • sloc: ansic: 5,196; makefile: 65; sh: 17
file content (19 lines) | stat: -rwxr-xr-x 422 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# autopkgtest check: Build and run a program against libfml
# Author: Sascha Steinbiss <satta@debian.org>
set -e

SRC=$(pwd)/example.c
DATADIR=$(pwd)/test
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR

cp $SRC .
gcc -O2 -o fermi-lite example.c -lfml -lz -lm -lpthread
[ -x fermi-lite ]
echo "build: OK"

./fermi-lite $DATADIR/MT-simu.fq.gz > out
ldd fermi-lite
echo "run: OK"