libverto/tests/driver/runtest.sh
Anuja More e726fb0f1e Enable tmt gating plan in libverto dist-git
Resolves: RHELMISC-9585

Signed-off-by: Anuja More <amore@redhat.com>
2025-03-25 09:42:25 +05:30

30 lines
640 B
Bash
Executable File

#!/bin/sh -ex
dnf -y --nogpgcheck build-dep ../../libverto.spec
wget https://github.com/latchset/libverto/releases/download/0.3.2/libverto-0.3.2.tar.gz
tar -xvzf libverto-0.3.2.tar.gz
cd libverto-0.3.2
# Generate Makefiles, directory layout, ...
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