Add tests back.

OBS-URL: https://build.opensuse.org/package/show/editors/vis?expand=0&rev=11
This commit is contained in:
2020-06-15 10:44:49 +00:00
committed by Git OBS Bridge
parent e8ee0a2388
commit 0628f60235
2 changed files with 14 additions and 9 deletions

BIN
vis-test-0.4.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -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*