Don't use special repository for tests.

Also, BR lua-busted and run all tests.
This commit is contained in:
Matej Cepl 2023-04-14 18:55:41 +02:00
parent f194c674ab
commit 113c1d4f2b

View File

@ -25,7 +25,6 @@ License: ISC
Group: Productivity/Text/Editors
URL: https://sr.ht/~martanne/vis
#!RemoteAssetUrl: git+https://git.sr.ht/~mcepl/vis#master
#!RemoteAssetUrl: git+https://git.sr.ht/~martanne/vis-test#master
BuildRequires: libacl-devel
BuildRequires: libselinux-devel
BuildRequires: libtermkey-devel
@ -37,12 +36,14 @@ BuildRequires: tar
%if 0%{?suse_version} > 1550
BuildRequires: lua54-devel
BuildRequires: lua54-lpeg
BuildRequires: lua54-busted
Requires: lua54
Requires: lua54-lpeg
Suggests: lua54-editorconfig-core-lua
%else
BuildRequires: lua-devel
BuildRequires: lua-lpeg
BuildRequires: lua-busted
Requires: lua
Requires: lua-lpeg
Suggests: lua-editorconfig-core-lua
@ -58,7 +59,6 @@ It extends vi's modal editing with built-in support for multiple cursors/selecti
%setup -q -n vis -c -T
cp -a %{_sourcedir}/vis/* .
cp -a %{_sourcedir}/vis-test/* test/
%build
export CFLAGS="%{optflags} -fcommon"
@ -73,8 +73,8 @@ export CFLAGS="%{optflags} -fcommon"
# The vim tests harness is not solid, let's skip them for the moment.
# Upstream mentioned the possibility of phasing them out entirely.
%make_build -C test/core
# No busted yet make -C test/lua
# %%make_build -C test/vis
%make_build -C test/lua
%make_build -C test/vis
%files
%{_bindir}/vis*