Move unit tests to the unittests asset folder
This commit is contained in:
parent
98f2feecc7
commit
3d88746060
|
|
@ -8,7 +8,7 @@ std::filesystem::path GetAssetDir()
|
||||||
if (!std::filesystem::is_directory(dir) && std::filesystem::is_directory("../.." / dir))
|
if (!std::filesystem::is_directory(dir) && std::filesystem::is_directory("../.." / dir))
|
||||||
dir = "../.." / dir;
|
dir = "../.." / dir;
|
||||||
|
|
||||||
return dir / "tests";
|
return dir / "unittests";
|
||||||
}();
|
}();
|
||||||
|
|
||||||
return resourceDir;
|
return resourceDir;
|
||||||
|
|
|
||||||
|
|
@ -185,7 +185,7 @@ if has_config("examples") then
|
||||||
end
|
end
|
||||||
|
|
||||||
if has_config("tests") then
|
if has_config("tests") then
|
||||||
add_rules("download.assets.tests")
|
add_rules("download.assets.unittests")
|
||||||
end
|
end
|
||||||
|
|
||||||
set_allowedplats("windows", "mingw", "linux", "macosx")
|
set_allowedplats("windows", "mingw", "linux", "macosx")
|
||||||
|
|
|
||||||
|
|
@ -39,4 +39,4 @@ local function downloadAssetsRule(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
downloadAssetsRule("examples")
|
downloadAssetsRule("examples")
|
||||||
downloadAssetsRule("tests")
|
downloadAssetsRule("unittests")
|
||||||
Loading…
Reference in New Issue