Compare commits
10 Commits
abb7cfe6ba
...
45b1da3e39
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
45b1da3e39 | ||
|
|
f384284300 | ||
|
|
0d77b1c3c9 | ||
|
|
ce90ba3a98 | ||
|
|
f217d10989 | ||
|
|
0ed67f84c4 | ||
|
|
755b48a6bd | ||
|
|
e0381a8325 | ||
|
|
82d8eb0794 | ||
|
|
b467069306 |
50
lua-lunit.spec
Normal file
50
lua-lunit.spec
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
Name: lua-lunit
|
||||||
|
Version: 0.8.1
|
||||||
|
Release: 1
|
||||||
|
Summary: Unit testing framework for Lua
|
||||||
|
License: MIT
|
||||||
|
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
|
||||||
|
|
||||||
|
%description
|
||||||
|
Lunit is a unit testing framework for lua, written in lua.
|
||||||
|
Lunit provides 26 assert functions, and a few misc functions for usage
|
||||||
|
in an easy unit testing framework.
|
||||||
|
Lunit comes with a test suite to test itself. The testsuite consists
|
||||||
|
of approximately 710 assertions.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n lunit-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
|
cp -p extra/lunit.sh %{buildroot}%{_bindir}/lunit
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{lua_pkgdir}
|
||||||
|
cp -pr lua/* %{buildroot}%{lua_pkgdir}
|
||||||
|
|
||||||
|
%check
|
||||||
|
# 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
|
||||||
|
%license LICENSE
|
||||||
|
%doc ANNOUNCE CHANGES DOCUMENTATION examples README*
|
||||||
|
%{_bindir}/lunit
|
||||||
|
%{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
|
||||||
|
|
||||||
|
* Mon Dec 2 2019 lijin Yang <yanglijin@huawei.com> - 0.5-15
|
||||||
|
- init package
|
||||||
|
|
||||||
4
lua-lunit.yaml
Normal file
4
lua-lunit.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: mrothNET/lunit
|
||||||
|
tag_prefix: ^v
|
||||||
|
seperator: .
|
||||||
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