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/actions/tests/action_tests.h')
-rw-r--r--src/actions/tests/action_tests.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/src/actions/tests/action_tests.h b/src/actions/tests/action_tests.h
deleted file mode 100644
index 7537b5e..0000000
--- a/src/actions/tests/action_tests.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * \file action_tests.h
- * \brief Common test fixtures for all action tests.
- * \author Copyright (c) 2008 Jason Perkins and the Premake project
- */
-
-#include "testing/testing.h"
-extern "C" {
-#include "objects/session.h"
-}
-
-struct FxAction
-{
- Session sess;
- Stream strm;
- Solution sln;
- Project prj;
- char buffer[8192];
-
- FxAction()
- {
- sess = session_create();
-
- strm = stream_create_null();
- stream_set_buffer(strm, buffer);
- session_set_active_stream(sess, strm);
-
- sln = solution_create();
- session_add_solution(sess, sln);
- solution_set_name(sln, "My Solution");
- solution_set_base_dir(sln, "Root Folder");
- solution_set_location(sln, "Root Folder/Solution Folder");
- solution_add_config(sln, "Debug DLL");
- solution_add_config(sln, "Release DLL");
-
- prj = project_create();
- solution_add_project(sln, prj);
- project_set_name(prj, "My Project");
- project_set_base_dir(prj, "Root Folder");
- project_set_location(prj, "Root Folder/Project Folder");
- project_set_guid(prj, "AE2461B7-236F-4278-81D3-F0D476F9A4C0");
- project_set_language(prj, "c++");
- project_set_config(prj, "Debug DLL");
- }
-
- ~FxAction()
- {
- stream_destroy(strm);
- session_destroy(sess);
- }
-
-
- void SetField(Project prj, ProjectField index, const char** values)
- {
- Strings strs = strings_create();
- for (const char** value = values; (*value) != NULL; ++value)
- {
- strings_add(strs, *value);
- }
-
- project_set_values(prj, index, strs);
- }
-
- void SetConfigField(Project prj, BlockField index, const char** values)
- {
- Strings strs = strings_create();
- for (const char** value = values; (*value) != NULL; ++value)
- {
- strings_add(strs, *value);
- }
-
- Block blk = block_create();
- block_set_values(blk, index, strs);
-
- Blocks blks = project_get_blocks(prj);
- blocks_add(blks, blk);
- }
-};