libverto/tests/driver/runtest.sh
Florence Blanc-Renaud de4e5195fc Fix gating
The role standard-test-source needs git to extract the source
as the %prep phase of the spec file calls autosetup -S git.

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
2024-07-05 15:11:09 +02:00

30 lines
541 B
Bash

#!/bin/sh -ex
# Weird location, but okay.
cd ../source
# Generate Makefiles, directory layout, ...
dnf -y --nogpgcheck build-dep ../libverto.spec
autoreconf -fiv
./configure --with-glib --with-libevent --disable-dependency-tracking
make -sj
# Avoid running `make check` here
cd tests
ls *.c | while read f; do
f="$(echo $f | awk -F. '{print $1}')"
make $f
done
cd ..
# Overwrite the build.
cd src/.libs
cp /usr/lib64/libverto-glib.so.1.0.0 .
cp /usr/lib64/libverto-libevent.so.1.0.0 .
cd ../..
# Go time.
exec make check