|
|
@ -170,7 +170,14 @@ package("opencv") |
|
|
|
end) |
|
|
|
end) |
|
|
|
|
|
|
|
|
|
|
|
on_test(function (package) |
|
|
|
on_test(function (package) |
|
|
|
|
|
|
|
-- bin path envs will be missing for precompiled artifacts in old xmake version |
|
|
|
|
|
|
|
local runtest = true |
|
|
|
|
|
|
|
if package.is_built and not package:is_built() and xmake.version():le("2.5.6") then |
|
|
|
|
|
|
|
runtest = false |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
if runtest then |
|
|
|
os.vrun("opencv_version") |
|
|
|
os.vrun("opencv_version") |
|
|
|
|
|
|
|
end |
|
|
|
assert(package:check_cxxsnippets({test = [[ |
|
|
|
assert(package:check_cxxsnippets({test = [[ |
|
|
|
#include <iostream> |
|
|
|
#include <iostream> |
|
|
|
void test(int argc, char** argv) { |
|
|
|
void test(int argc, char** argv) { |
|
|
|