This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/tests/premake4.lua

38 lines
745 B
Lua

--
-- tests/premake4.lua
-- Automated test suite for Premake 4.x
-- Copyright (c) 2008 Jason Perkins and the Premake project
--
dofile("testfx.lua")
dofile("test_dofile.lua")
dofile("test_os.lua")
dofile("test_path.lua")
dofile("test_string.lua")
dofile("test_table.lua")
dofile("test_template.lua")
dofile("test_premake.lua")
dofile("test_config.lua")
dofile("test_project.lua")
dofile("test_functions.lua")
--
-- Register a test action
--
premake.actions["test"] = {
description = "Run the automated test suite",
execute = function ()
passed, failed = test.runall()
msg = string.format("%d tests passed, %d failed", passed, failed)
if (failed > 0) then
error(msg, 0)
else
print(msg)
end
end
}