From e726fb0f1ee6a8a670387e3e3a84953704118b5f Mon Sep 17 00:00:00 2001 From: Anuja More Date: Mon, 10 Mar 2025 19:52:45 +0530 Subject: [PATCH] Enable tmt gating plan in libverto dist-git Resolves: RHELMISC-9585 Signed-off-by: Anuja More --- .fmf/version | 1 + plan.fmf | 4 ++++ tests/driver/main.fmf | 19 +++++++++++++++++++ tests/driver/runtest.sh | 7 +++++-- tests/tests.yml | 29 ----------------------------- 5 files changed, 29 insertions(+), 31 deletions(-) create mode 100644 .fmf/version create mode 100644 plan.fmf create mode 100644 tests/driver/main.fmf mode change 100644 => 100755 tests/driver/runtest.sh delete mode 100644 tests/tests.yml diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plan.fmf b/plan.fmf new file mode 100644 index 0000000..0392cd5 --- /dev/null +++ b/plan.fmf @@ -0,0 +1,4 @@ +discover: + how: fmf +execute: + how: tmt diff --git a/tests/driver/main.fmf b/tests/driver/main.fmf new file mode 100644 index 0000000..9fdcc1b --- /dev/null +++ b/tests/driver/main.fmf @@ -0,0 +1,19 @@ +summary: Simple smoke test +contact: Anuja More +component: +- libverto +require: +- libverto +- libverto-devel +- libverto-glib-devel +- libverto-libevent-devel +- make +- rpm-build +- fmf +- wget +- autoconf +- autoconf-archive +test: ./runtest.sh +duration: 25m +enabled: true +extra-summary: tmt convert test diff --git a/tests/driver/runtest.sh b/tests/driver/runtest.sh old mode 100644 new mode 100755 index f407201..c40a6c1 --- a/tests/driver/runtest.sh +++ b/tests/driver/runtest.sh @@ -1,7 +1,10 @@ #!/bin/sh -ex -# Weird location, but okay. -cd ../source +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 diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index 497a4b3..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,29 +0,0 @@ ---- -- 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 - -- 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 - - make - - rpm-build - tests: - - driver