Debian Codegraph @

debian/tests/build

raw
1 #!/bin/sh
2 set -e
3
4 WORKDIR=$(mktemp -d)
5 trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
6
7 cd $WORKDIR
8 cat <<EOF > test.c
9 #include <vid.stab/libvidstab.h>
10 #include <stdio.h>
11
12 int main() {
13 printf("libvidstab version: %s\n", LIBVIDSTAB_VERSION);
14 return 0;
15 }
16 EOF
17
18 gcc -o test test.c $(pkgconf --cflags --libs vidstab)
19 echo "build: OK"
20 ./test
21 echo "run: OK"