package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
840 B
23 lines
840 B
7 months ago
|
package("clove-unit")
|
||
|
set_kind("library", {headeronly = true})
|
||
|
set_homepage("https://github.com/fdefelici/clove-unit")
|
||
|
set_description("Single-Header Unit Testing framework for C (interoperable with C++) with test autodiscovery feature")
|
||
|
set_license("MIT")
|
||
|
|
||
|
add_urls("https://github.com/fdefelici/clove-unit/archive/refs/tags/$(version).tar.gz",
|
||
|
"https://github.com/fdefelici/clove-unit.git")
|
||
|
|
||
|
add_versions("v2.4.4", "25e611e1d4286c73d9cce7bbc99f83e00629551602351fec1edcbb669243e047")
|
||
|
|
||
|
on_install(function (package)
|
||
|
os.vcp("clove-unit.h", package:installdir("include"))
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:check_csnippets({test = [[
|
||
|
CLOVE_TEST(test) {
|
||
|
CLOVE_IS_TRUE(1);
|
||
|
}
|
||
|
]]}, {includes = "clove-unit.h"}))
|
||
|
end)
|