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:
Diffstat (limited to 'src/action/vs200x/tests/vs2002_project_tests.cpp')
-rw-r--r--src/action/vs200x/tests/vs2002_project_tests.cpp176
1 files changed, 88 insertions, 88 deletions
diff --git a/src/action/vs200x/tests/vs2002_project_tests.cpp b/src/action/vs200x/tests/vs2002_project_tests.cpp
index aeb2006..e4704a0 100644
--- a/src/action/vs200x/tests/vs2002_project_tests.cpp
+++ b/src/action/vs200x/tests/vs2002_project_tests.cpp
@@ -1,88 +1,88 @@
-/**
- * \file vs2002_project_tests.cpp
- * \brief Automated tests for VS2002 project processing.
- * \author Copyright (c) 2008 Jason Perkins and the Premake project
- */
-
-#include "premake.h"
-#include "action/tests/action_tests.h"
-extern "C" {
-#include "action/vs200x/vs200x_project.h"
-}
-
-struct Fx2002Project : FxAction
-{
- Fx2002Project()
- {
- session_set_action(sess, "vs2002");
- }
-};
-
-
-SUITE(action)
-{
- TEST_FIXTURE(Fx2002Project, Vs2002_VisualStudioProject)
- {
- vs200x_project_element(sess, prj, strm);
- CHECK_EQUAL(
- "<VisualStudioProject\n"
- "\tProjectType=\"Visual C++\"\n"
- "\tVersion=\"7.00\"\n"
- "\tName=\"MyProject\"\n"
- "\tProjectGUID=\"{AE2461B7-236F-4278-81D3-F0D476F9A4C0}\"\n"
- "\tKeyword=\"Win32Proj\">\n",
- buffer);
- }
-
-
- TEST_FIXTURE(Fx2002Project, Vs2002_ToolFiles)
- {
- vs200x_project_tool_files(sess, prj, strm);
- CHECK_EQUAL(
- "\t<Configurations>\n",
- buffer);
- }
-
-
- TEST_FIXTURE(Fx2002Project, VCCLCompilerTool)
- {
- vs200x_project_vc_cl_compiler_tool(sess, prj, strm);
- CHECK_EQUAL(
- "\t\t\t<Tool\n"
- "\t\t\t\tName=\"VCCLCompilerTool\"\n"
- "\t\t\t\tOptimization=\"0\"\n"
- "\t\t\t\tMinimalRebuild=\"TRUE\"\n"
- "\t\t\t\tBasicRuntimeChecks=\"3\"\n"
- "\t\t\t\tRuntimeLibrary=\"3\"\n"
- "\t\t\t\tRuntimeTypeInfo=\"TRUE\"\n"
- "\t\t\t\tUsePrecompiledHeader=\"2\"\n"
- "\t\t\t\tWarningLevel=\"3\"\n"
- "\t\t\t\tDetect64BitPortabilityProblems=\"TRUE\"\n"
- "\t\t\t\tDebugInformationFormat=\"4\"/>\n",
- buffer);
- }
-
-
- TEST_FIXTURE(Fx2002Project, VCLinkerTool)
- {
- vs200x_project_vc_linker_tool(sess, prj, strm);
- CHECK_EQUAL(
- "\t\t\t<Tool\n"
- "\t\t\t\tName=\"VCLinkerTool\"\n"
- "\t\t\t\tLinkIncremental=\"2\"\n"
- "\t\t\t\tGenerateDebugInformation=\"TRUE\"\n"
- "\t\t\t\tSubSystem=\"1\"\n"
- "\t\t\t\tEntryPointSymbol=\"mainCRTStartup\"\n"
- "\t\t\t\tTargetMachine=\"1\"/>\n",
- buffer);
- }
-
-
- TEST_FIXTURE(Fx2002Project, References)
- {
- vs200x_project_references(sess, prj, strm);
- CHECK_EQUAL(
- "\t</Configurations>\n",
- buffer);
- }
-}
+/**
+ * \file vs2002_project_tests.cpp
+ * \brief Automated tests for VS2002 project processing.
+ * \author Copyright (c) 2008 Jason Perkins and the Premake project
+ */
+
+#include "premake.h"
+#include "action/tests/action_tests.h"
+extern "C" {
+#include "action/vs200x/vs200x_project.h"
+}
+
+struct Fx2002Project : FxAction
+{
+ Fx2002Project()
+ {
+ session_set_action(sess, "vs2002");
+ }
+};
+
+
+SUITE(action)
+{
+ TEST_FIXTURE(Fx2002Project, Vs2002_VisualStudioProject)
+ {
+ vs200x_project_element(sess, prj, strm);
+ CHECK_EQUAL(
+ "<VisualStudioProject\n"
+ "\tProjectType=\"Visual C++\"\n"
+ "\tVersion=\"7.00\"\n"
+ "\tName=\"MyProject\"\n"
+ "\tProjectGUID=\"{AE2461B7-236F-4278-81D3-F0D476F9A4C0}\"\n"
+ "\tKeyword=\"Win32Proj\">\n",
+ buffer);
+ }
+
+
+ TEST_FIXTURE(Fx2002Project, Vs2002_ToolFiles)
+ {
+ vs200x_project_tool_files(sess, prj, strm);
+ CHECK_EQUAL(
+ "\t<Configurations>\n",
+ buffer);
+ }
+
+
+ TEST_FIXTURE(Fx2002Project, VCCLCompilerTool)
+ {
+ vs200x_project_vc_cl_compiler_tool(sess, prj, strm);
+ CHECK_EQUAL(
+ "\t\t\t<Tool\n"
+ "\t\t\t\tName=\"VCCLCompilerTool\"\n"
+ "\t\t\t\tOptimization=\"0\"\n"
+ "\t\t\t\tMinimalRebuild=\"TRUE\"\n"
+ "\t\t\t\tBasicRuntimeChecks=\"3\"\n"
+ "\t\t\t\tRuntimeLibrary=\"3\"\n"
+ "\t\t\t\tRuntimeTypeInfo=\"TRUE\"\n"
+ "\t\t\t\tUsePrecompiledHeader=\"2\"\n"
+ "\t\t\t\tWarningLevel=\"3\"\n"
+ "\t\t\t\tDetect64BitPortabilityProblems=\"TRUE\"\n"
+ "\t\t\t\tDebugInformationFormat=\"4\"/>\n",
+ buffer);
+ }
+
+
+ TEST_FIXTURE(Fx2002Project, VCLinkerTool)
+ {
+ vs200x_project_vc_linker_tool(sess, prj, strm);
+ CHECK_EQUAL(
+ "\t\t\t<Tool\n"
+ "\t\t\t\tName=\"VCLinkerTool\"\n"
+ "\t\t\t\tLinkIncremental=\"2\"\n"
+ "\t\t\t\tGenerateDebugInformation=\"TRUE\"\n"
+ "\t\t\t\tSubSystem=\"1\"\n"
+ "\t\t\t\tEntryPointSymbol=\"mainCRTStartup\"\n"
+ "\t\t\t\tTargetMachine=\"1\"/>\n",
+ buffer);
+ }
+
+
+ TEST_FIXTURE(Fx2002Project, References)
+ {
+ vs200x_project_references(sess, prj, strm);
+ CHECK_EQUAL(
+ "\t</Configurations>\n",
+ buffer);
+ }
+}