augeas/tests/devel.sh
Richard W.M. Jones ba1d6eb9eb Add gating tests (for RHEL)
resolves: rhbz#1975459

(cherry picked from commit dfd02f7fb4)
2021-06-24 08:29:06 +01:00

19 lines
278 B
Bash
Executable File

#!/bin/bash
set -eux
pkg-config --cflags augeas
pkg-config --libs augeas
src_dump="$(realpath source/examples/dump.c)"
tmpdir="$(mktemp -d)"
pushd "$tmpdir"
gcc -o dump $(pkg-config --cflags --libs augeas) "$src_dump"
test -x dump
./dump > /dev/null
popd
rm -rf "$tmpdir"