Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstarkos <none@none>2008-10-31 21:38:05 +0300
committerstarkos <none@none>2008-10-31 21:38:05 +0300
commitc257e9c746f096ca4294168a8a2c26de538eb36c (patch)
tree8cf84989823ea063e60f805b8dedb619730bd5bc /tests/test_premake.lua
parentb2f4cfdc24ae7a45049ada7dd2afd91cb52053d1 (diff)
First integration of new Lua-based architecture
Diffstat (limited to 'tests/test_premake.lua')
-rw-r--r--tests/test_premake.lua33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/test_premake.lua b/tests/test_premake.lua
new file mode 100644
index 0000000..a10f547
--- /dev/null
+++ b/tests/test_premake.lua
@@ -0,0 +1,33 @@
+--
+-- tests/test_premake.lua
+-- Automated test suite for the Premake support functions.
+-- Copyright (c) 2008 Jason Perkins and the Premake project
+--
+
+
+ T.premake = { }
+
+
+--
+-- premake.checktools() tests
+--
+
+ function T.premake.checktools_SetsDefaultTools()
+ _ACTION = "gmake"
+ premake.checktools()
+ test.isequal("gcc", _OPTIONS.cc)
+ test.isequal("mcs", _OPTIONS.csc)
+ end
+
+
+ function T.premake.checktools_Fails_OnToolMismatch()
+ _ACTION = "gmake"
+ _OPTIONS["cc"] = "xyz"
+ ok, err = premake.checktools()
+ test.isfalse( ok )
+ test.isequal("the GNU Make action does not support /cc=xyz", err)
+ end
+
+
+
+ \ No newline at end of file