Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
45b1da3e39
!8 [sync] PR-7: lua-lunit升级至0.8.1版本
From: @openeuler-sync-bot 
Reviewed-by: @ruebb 
Signed-off-by: @ruebb
2022-04-06 06:18:04 +00:00
wu-leilei
f384284300 update package
(cherry picked from commit a115b9b4346951806a77e21a5f79b37df1aa5c84)
2022-03-30 14:49:10 +08:00
openeuler-ci-bot
0d77b1c3c9 !4 Fix source0 and URL
From: @kkkl12
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-09-11 11:43:49 +08:00
kkkl12
ce90ba3a98 Fix Source0 and URL 2020-09-11 09:29:31 +08:00
openeuler-ci-bot
f217d10989 !3 Modify yaml file
Merge pull request !3 from jeff200902/master
2020-07-20 14:31:14 +08:00
jeff200902
0ed67f84c4 modify yaml 2020-07-18 09:31:39 +08:00
openeuler-ci-bot
755b48a6bd !2 Add yaml file
Merge pull request !2 from jeff200902/master
2020-05-12 15:11:17 +08:00
jeff200902
e0381a8325 Add yaml file 2020-05-08 19:49:36 +08:00
openeuler-ci-bot
82d8eb0794 !1 Package Init
Merge pull request !1 from 窃格瓦拉/master
2019-12-05 17:28:09 +08:00
qiegewala
b467069306 Package Init 2019-12-05 17:16:02 +08:00
3 changed files with 54 additions and 0 deletions

50
lua-lunit.spec Normal file
View 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
View 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

Binary file not shown.