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