From 44b7ba347d0060dcb852caefe76b1c78a4ffd163 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Tue, 11 Jul 2023 12:25:21 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 4 +++- tests/glib+libevent/runtest.sh | 31 +++++++++++++++++++++++++++++++ tests/libev/runtest.sh | 30 ++++++++++++++++++++++++++++++ tests/tests.yml | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 tests/glib+libevent/runtest.sh create mode 100644 tests/libev/runtest.sh create mode 100644 tests/tests.yml diff --git a/.gitignore b/.gitignore index 10b3ce7..18d9bb4 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/tests/glib+libevent/runtest.sh b/tests/glib+libevent/runtest.sh new file mode 100644 index 0000000..4f0a947 --- /dev/null +++ b/tests/glib+libevent/runtest.sh @@ -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 diff --git a/tests/libev/runtest.sh b/tests/libev/runtest.sh new file mode 100644 index 0000000..3548e31 --- /dev/null +++ b/tests/libev/runtest.sh @@ -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 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..16dabf4 --- /dev/null +++ b/tests/tests.yml @@ -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