diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:32:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 03:32:50 +0000 |
commit | c617178f9517a33ea878066e13e8836f91574e1d (patch) | |
tree | ed4e79104cbba5bea8ec7d1e72540646598dc504 /debian/tests/build-and-run-examples | |
parent | Adding upstream version 0.17.0. (diff) | |
download | rnp-debian/0.17.0-3.tar.xz rnp-debian/0.17.0-3.zip |
Adding debian version 0.17.0-3.debian/0.17.0-3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | debian/tests/build-and-run-examples | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/tests/build-and-run-examples b/debian/tests/build-and-run-examples new file mode 100755 index 0000000..6145719 --- /dev/null +++ b/debian/tests/build-and-run-examples @@ -0,0 +1,18 @@ +#!/bin/sh + +set -e + +if [ -d "$AUTOPKGTEST_ARTIFACTS" ]; then + cd "$AUTOPKGTEST_ARTIFACTS" +fi + +for x in /usr/share/doc/librnp-dev/examples/*.c; do + bin="$(basename "$x" .c)" + printf 'building %s\n' "$bin" + gcc -g -O2 -Werror -Wall -pedantic -o "$bin" "$x" $(pkg-config --cflags --libs librnp) +done + +for x in generate encrypt decrypt sign verify; do + printf '**** %s ****\n' "$x" + "./$x" +done |