From 0628f60235fe0b8c280899d7bcff44a48126e966630c4defcdcf52bc36b92105 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 15 Jun 2020 10:44:49 +0000 Subject: [PATCH] Add tests back. OBS-URL: https://build.opensuse.org/package/show/editors/vis?expand=0&rev=11 --- vis-test-0.4.tar.gz | 3 +++ vis.spec | 20 +++++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 vis-test-0.4.tar.gz diff --git a/vis-test-0.4.tar.gz b/vis-test-0.4.tar.gz new file mode 100644 index 0000000..6343b35 --- /dev/null +++ b/vis-test-0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e206537893182d471efc4e77491fef78006d2f0c9ec12b1a2eaca3df06954d2c +size 98703 diff --git a/vis.spec b/vis.spec index 940649d..8ca0fb2 100644 --- a/vis.spec +++ b/vis.spec @@ -16,6 +16,7 @@ # +%define test_version 0.4 Name: vis Version: 0.6 Release: 0 @@ -23,7 +24,8 @@ Summary: An editor combining the strengths of both vi(m) and sam License: ISC Group: Productivity/Text/Editors URL: https://github.com/martanne/vis -Source: https://github.com/martanne/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source0: https://github.com/martanne/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: https://github.com/martanne/vis-test/releases/download/v%{test_version}/vis-test-%{test_version}.tar.gz BuildRequires: libtermkey-devel BuildRequires: lua-devel BuildRequires: lua-lpeg @@ -39,7 +41,8 @@ Vis aims to be a modern, legacy free, simple yet efficient editor combining the It extends vi's modal editing with built-in support for multiple cursors/selections and combines it with sam's structural regular expression based command language. %prep -%autosetup +%setup -q +tar -xC test/ --strip-components 1 -f %{SOURCE1} %build export CFLAGS="%{optflags} -fcommon" @@ -50,13 +53,12 @@ export CFLAGS="%{optflags} -fcommon" %make_install %check -# Tests not available in the released version. -# # According to the debian/rules: -# # The vim tests harness is not solid, let's skip them for the moment. -# # Upstream mentioned the possibility of phasing them out entirely. -# make -C test/core -# # No busted yet make -C test/lua -# make -C test/vis +# According to the debian/rules: +# The vim tests harness is not solid, let's skip them for the moment. +# Upstream mentioned the possibility of phasing them out entirely. +make -C test/core +# No busted yet make -C test/lua +make -C test/vis %files %{_bindir}/vis*