blob: 5ad6f88230c01b81810171929db7aa0127168008 (
plain)
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
# autopkgtest check: Build and run a program against librbd1 to
# validate that headers are installed and libraries exists
set -e
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR
cat <<EOF > rbdtest.c
#include <rbd/librbd.h>
int
main(void)
{
return(0);
}
EOF
gcc -o rbdtest rbdtest.c -lrbd
echo "build: OK"
[ -x rbdtest ]
./rbdtest
echo "run: OK"
|