Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
|
50c5c45bcd
|
|||
|
ebbbc87a17
|
|||
|
a9ae642693
|
|||
|
b07eac7791
|
@@ -2,4 +2,5 @@
|
||||
<package>luajit</package>
|
||||
<package>lua53</package>
|
||||
<package>lua54</package>
|
||||
<package>lua55</package>
|
||||
</multibuild>
|
||||
|
||||
28
build-tests.patch
Normal file
28
build-tests.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
spec/fixtures_spec.lua | 5 ++---
|
||||
1 file changed, 2 insertions(+), 3 deletions(-)
|
||||
|
||||
Index: busted-2.3.0/spec/fixtures_spec.lua
|
||||
===================================================================
|
||||
--- busted-2.3.0.orig/spec/fixtures_spec.lua 2026-01-07 21:08:33.000000000 +0100
|
||||
+++ busted-2.3.0/spec/fixtures_spec.lua 2026-02-26 00:07:47.177036533 +0100
|
||||
@@ -6,12 +6,12 @@
|
||||
|
||||
it("returns the absolute fixture path", function()
|
||||
local path = fixtures.path("fixtures/myfile.txt")
|
||||
- assert.match("^.-busted[/\\]spec[/\\]fixtures[/\\]myfile.txt$", path)
|
||||
+ assert.match("^.-busted[^/\\]*[/\\]spec[/\\]fixtures[/\\]myfile.txt$", path)
|
||||
end)
|
||||
|
||||
it("returns the absolute fixture path normalized", function()
|
||||
local path = fixtures.path("../fixtures/myfile.txt")
|
||||
- assert.match("^.-busted[/\\]fixtures[/\\]myfile.txt$", path)
|
||||
+ assert.match("^.-busted[^/\\]*[/\\]fixtures[/\\]myfile.txt$", path)
|
||||
end)
|
||||
|
||||
it("errors on bad input", function()
|
||||
@@ -83,4 +83,3 @@
|
||||
|
||||
|
||||
end)
|
||||
-
|
||||
BIN
busted-2.0.0.tar.gz
LFS
BIN
busted-2.0.0.tar.gz
LFS
Binary file not shown.
BIN
busted-2.3.0.tar.gz
LFS
Normal file
BIN
busted-2.3.0.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +1,72 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 25 22:41:16 UTC 2026 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Update to 2.3.0:
|
||||
- Features
|
||||
- Add support for Lua 5.5
|
||||
- Implement loader for Fennel
|
||||
- Add split output support; optimize display format to junit
|
||||
- Improve junit report formatting to avoid truncation
|
||||
- Bug Fixes
|
||||
- Restore context state on its own terms, not the terms of
|
||||
the current env
|
||||
- Hack around cliargs quirk to handle "help" flag correctly
|
||||
- Unpin cliargs dependency
|
||||
- Update to 2.2.0:
|
||||
- Features
|
||||
- Add Korean localization
|
||||
- Add --exclude-name-file and --log-success options
|
||||
- (When combined can automate re-running only failed tests)
|
||||
- Add --name option to easily run single tests
|
||||
- Bug Fixes
|
||||
- Remove unused luafilesystem dependency
|
||||
- Correct installation and example documentation
|
||||
- Use escape sequences to output UTF-8 characters in more
|
||||
environments
|
||||
- Output more standard tracing notation in gtest handler
|
||||
- Fix casting to string before encoding errors in JSON
|
||||
- Correct TAP handler to not error on no test files
|
||||
- Update to 2.1.2:
|
||||
- Bug Fixes
|
||||
- fix(luajit): ensure that ffi loaded libs will not get GC'ed
|
||||
#711
|
||||
- Features
|
||||
- Add Indonesian language support #705
|
||||
- Allow helpers to extend busted #658
|
||||
- Update to 2.1.1:
|
||||
- Bug Fixes
|
||||
- Avoid GitHub marketplace namespace conflict
|
||||
- Update to 2.1.0:
|
||||
- Bug Fixes
|
||||
- Refactor rockspec to dodge luarocks 3.1.3 bug
|
||||
- Fix caching the ffi.typeof function on luajit
|
||||
- Fix 'metatype' as a patched method on luajit
|
||||
- Report pending without function argument
|
||||
- Cache all outputter functions, use io.write not print
|
||||
- Exit when CLI specified helper fails
|
||||
- Restore globals set to nil in insulate block
|
||||
- Change rockspec URL to git+https
|
||||
- Fix error in gtest and utfhandlers if color was set
|
||||
- Features
|
||||
- Add tooling so repository can be used as a GitHub action
|
||||
- Add Dockefile and publish to GHCR
|
||||
- Add function to locate relative fixtures
|
||||
- Add CLI support for setting luacov config path
|
||||
- Add helpers to read/load fixtures
|
||||
- Add Romanian translation
|
||||
- Enable color overrides for utf+gtest handlers
|
||||
- Miscellaneous Tasks
|
||||
- Overhaul CI & add automatic publishing from rockspecs
|
||||
- Bump luassert/say deps
|
||||
- Update terra loader to use the global-injection of current
|
||||
Terra
|
||||
- Enable lua55 build.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 25 12:38:02 UTC 2026 - Ana Guerrero <ana.guerrero@suse.com>
|
||||
|
||||
- Add BuildIgnore on lua51 while is fully removed from Tumbleweed.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 24 14:47:05 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package lua-busted
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2026 SUSE LLC and contributors
|
||||
# Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -21,23 +21,22 @@
|
||||
# Remove file dependency on the interpreter
|
||||
%global __requires_exclude ^/usr/bin/lua(5\\.[1-9]|jit)?$
|
||||
%define mod_name busted
|
||||
%if "%{flavor}" == "luajit"
|
||||
%define lua_value 52
|
||||
%else
|
||||
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
|
||||
%endif
|
||||
%define upversion 2.0.0
|
||||
Version: 2.0.0
|
||||
Version: 2.3.0
|
||||
Release: 0
|
||||
Summary: Unit testing framework with a focus on being easy to use
|
||||
License: MIT
|
||||
Group: Development/Languages/Other
|
||||
URL: https://lunarmodules.github.io/busted/
|
||||
Source: https://github.com/lunarmodules/%{mod_name}/archive/v%{upversion}.tar.gz#/%{mod_name}-%{upversion}.tar.gz
|
||||
Source: https://github.com/lunarmodules/%{mod_name}/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM build-tests.patch bugno mcepl@suse.com
|
||||
# fix tests to pass
|
||||
Patch0: build-tests.patch
|
||||
BuildRequires: %{flavor}-cliargs >= 3.0-1
|
||||
BuildRequires: %{flavor}-devel
|
||||
# For testing
|
||||
# BuildRequires: %%{flavor}-copas
|
||||
# Required while lua51 is fully removed from Tumbleweed
|
||||
#!BuildIgnore: lua51
|
||||
BuildRequires: %{flavor}-lua-ev
|
||||
BuildRequires: %{flavor}-luafilesystem
|
||||
BuildRequires: %{flavor}-luassert >= 1.7.8-0
|
||||
@@ -47,6 +46,7 @@ BuildRequires: %{flavor}-mediator_lua >= 1.1-0
|
||||
BuildRequires: %{flavor}-moonscript
|
||||
BuildRequires: %{flavor}-penlight >= 1.3.2-2
|
||||
BuildRequires: %{flavor}-say >= 1.3-0
|
||||
BuildRequires: %{flavor}-luacov
|
||||
BuildRequires: curl
|
||||
BuildRequires: lua-macros
|
||||
BuildRequires: openssl
|
||||
@@ -96,11 +96,11 @@ register phrases for internationaliation with custom or built-in
|
||||
language packs.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{mod_name}-%{version}
|
||||
%autosetup -p1 -n %{mod_name}-%{version}
|
||||
sed -i 's|^#!%{_bindir}/env lua|#!%{_bindir}/lua|' bin/busted
|
||||
|
||||
%build
|
||||
/bin/true
|
||||
:
|
||||
|
||||
%install
|
||||
install -v -m 0755 -p -d %{buildroot}%{lua_noarchdir}
|
||||
@@ -120,6 +120,7 @@ install -v -D -m 0644 -p completions/zsh/_busted \
|
||||
%{buildroot}%{_datadir}/zsh/vendor-completions/_busted-%{lua_version}
|
||||
touch %{buildroot}%{_sysconfdir}/alternatives/busted.bash
|
||||
touch %{buildroot}%{_sysconfdir}/alternatives/busted.zsh
|
||||
touch %{buildroot}%{_sysconfdir}/alternatives/_busted
|
||||
ln -sf %{_sysconfdir}/alternatives/busted.bash \
|
||||
%{buildroot}%{_datadir}/bash-completion/completions/busted
|
||||
ln -sf %{_sysconfdir}/alternatives/busted.zsh \
|
||||
@@ -147,6 +148,7 @@ bin/busted -v spec
|
||||
%ghost %{_sysconfdir}/alternatives/busted
|
||||
%ghost %{_sysconfdir}/alternatives/busted.bash
|
||||
%ghost %{_sysconfdir}/alternatives/busted.zsh
|
||||
%ghost %{_sysconfdir}/alternatives/_busted
|
||||
%{_bindir}/busted
|
||||
%{_bindir}/busted-%{lua_version}
|
||||
%{lua_noarchdir}/busted
|
||||
|
||||
Reference in New Issue
Block a user