!11 [sync] PR-7: lua-lunit升级至0.8.1版本
From: @openeuler-sync-bot Reviewed-by: @licihua Signed-off-by: @licihua
This commit is contained in:
commit
b1ccbcdc47
@ -1,11 +1,11 @@
|
||||
Name: lua-lunit
|
||||
Version: 0.5
|
||||
Release: 16
|
||||
Version: 0.8.1
|
||||
Release: 1
|
||||
Summary: Unit testing framework for Lua
|
||||
License: MIT
|
||||
URL: https://mroth.net/lunit
|
||||
Source0: https://mroth.net/lunit/lunit-%{version}.tar.gz
|
||||
BuildRequires: lua >= 5.2
|
||||
URL: https://github.com/dcurrie/lunit/
|
||||
Source0: https://github.com/dcurrie/lunit/archive/%{version}.tar.gz#/lunitx-%{version}.tar.gz
|
||||
BuildRequires: lua >= 5.2 lua-devel >= 5.2
|
||||
Requires: lua >= 5.2
|
||||
BuildArch: noarch
|
||||
|
||||
@ -22,22 +22,26 @@ of approximately 710 assertions.
|
||||
%build
|
||||
|
||||
%install
|
||||
install -d $RPM_BUILD_ROOT%{_bindir}
|
||||
cp -p lunit $RPM_BUILD_ROOT%{_bindir}
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
cp -p extra/lunit.sh %{buildroot}%{_bindir}/lunit
|
||||
|
||||
install -d $RPM_BUILD_ROOT%{_datadir}/lua/5.2
|
||||
cp -pr lunit{,-console}.lua $RPM_BUILD_ROOT%{_datadir}/lua/5.2
|
||||
mkdir -p %{buildroot}%{lua_pkgdir}
|
||||
cp -pr lua/* %{buildroot}%{lua_pkgdir}
|
||||
|
||||
%check
|
||||
./lunit lunit-tests.lua | tee testlog.txt
|
||||
grep -q "0 failed, 0 errors" testlog.txt
|
||||
# for self test, without --dontforce lunit will try to load its launcher which is a shell script
|
||||
LUA_PATH='%{buildroot}%{lua_pkgdir}/?.lua;;' %{buildroot}%{_bindir}/lunit --dontforce test/selftest.lua
|
||||
|
||||
%files
|
||||
%doc LICENSE ANNOUNCE CHANGES DOCUMENTATION README* example.lua
|
||||
%license LICENSE
|
||||
%doc ANNOUNCE CHANGES DOCUMENTATION examples README*
|
||||
%{_bindir}/lunit
|
||||
%{_datadir}/lua/5.2/*
|
||||
%{lua_pkgdir}/*
|
||||
|
||||
%changelog
|
||||
* Thu Feb 10 2022 wulei <wulei80@huawei.com> 0.8.1-1
|
||||
- Update package
|
||||
|
||||
* Thu Sep 09 2020 liuweibo <liuweibo10@huawei.com> - 0.5-16
|
||||
- Fix Source0 and URL
|
||||
|
||||
|
||||
BIN
lunit-0.5.tar.gz
BIN
lunit-0.5.tar.gz
Binary file not shown.
BIN
lunitx-0.8.1.tar.gz
Normal file
BIN
lunitx-0.8.1.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user