diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:46:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:46:10 +0000 |
commit | 7050cdb205fd1b1b847c148092a8548f00a061c0 (patch) | |
tree | 05a497ffd12f14405445c3288085e228f4e8579f /debian/tests/build-rados | |
parent | Adding upstream version 16.2.11+ds. (diff) | |
download | ceph-66b327c0b0f35bc6c97ecea4c45d5807b04ac406.tar.xz ceph-66b327c0b0f35bc6c97ecea4c45d5807b04ac406.zip |
Adding debian version 16.2.11+ds-2.debian/16.2.11+ds-2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/build-rados')
-rwxr-xr-x | debian/tests/build-rados | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/tests/build-rados b/debian/tests/build-rados new file mode 100755 index 000000000..c62999251 --- /dev/null +++ b/debian/tests/build-rados @@ -0,0 +1,31 @@ +#!/bin/sh +# autopkgtest check: Build and run a program against librados2 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 > radostest.c +#include <rados/librados.h> + +int +main(void) +{ + int err; + rados_t cluster; + + err = rados_create(&cluster, NULL); + if (err < 0) { + return (1); + } + return(0); +} +EOF + +gcc -o radostest radostest.c -lrados +echo "build: OK" +[ -x radostest ] +./radostest +echo "run: OK" |