augeas/tests/devel.sh

19 lines
278 B
Bash
Raw Normal View History

2021-06-23 09:55:23 +00:00
#!/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"