re-import sources as agreed with the maintainer

This commit is contained in:
Adam Samalik 2023-07-11 12:25:21 +02:00
parent 940fe3d47c
commit 44b7ba347d
4 changed files with 97 additions and 1 deletions

4
.gitignore vendored
View File

@ -1,2 +1,4 @@
SOURCES/libverto-0.3.2.tar.gz
/libverto-0.2.6.tar.gz
/libverto-0.3.0.tar.gz
/libverto-0.3.1.tar.gz
/libverto-0.3.2.tar.gz

View File

@ -0,0 +1,31 @@
#!/bin/sh -ex
# Weird location, but okay.
cd ../source
# Cleanup
if [ -f Makefile ]; then
make clean
fi
# 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

30
tests/libev/runtest.sh Normal file
View File

@ -0,0 +1,30 @@
#!/bin/sh -ex
# Weird location, but okay.
cd ../source
# Cleanup
if [ -f Makefile ]; then
make clean
fi
# Generate Makefiles, directory layout, ...
autoreconf -fiv
./configure --with-libev --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-libev.so.1.0.0 .
cd ../..
# Go time.
exec make check

33
tests/tests.yml Normal file
View File

@ -0,0 +1,33 @@
---
- hosts: localhost
tags: classic
tasks:
- name: Copy spec file to remote machine
copy:
src: "{{ playbook_dir }}/../libverto.spec"
dest: /tmp/libverto.spec
- name: Install build deps
shell: dnf -y --nogpgcheck build-dep /tmp/libverto.spec
args:
warn: false
- hosts: localhost
roles:
- role: standard-test-source
tags:
- always
- role: standard-test-basic
tags:
- atomic
- classic
required_packages:
- libverto
- libverto-devel
- libverto-glib-devel
- libverto-libevent-devel
- libverto-libev-devel
- make
- rpm-build
tests:
- glib+libevent
- libev