Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F2718308
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Feb 15, 11:42 PM
Size
936 B
Mime Type
text/x-diff
Expires
Tue, Feb 17, 11:42 PM (1 d, 14 h)
Engine
blob
Format
Raw Data
Handle
237566
Attached To
rXR Xreate
View Options
diff --git a/cpp/tests/virtualization.cpp b/cpp/tests/virtualization.cpp
new file mode 100644
index 0000000..2191504
--- /dev/null
+++ b/cpp/tests/virtualization.cpp
@@ -0,0 +1,27 @@
+/*
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ =
+ * virtualization.cpp
+ *
+ * Author: pgess <v.melnychenko@xreate.org>
+ * Created on February 24, 2018, 4:30 PM
+ */
+
+#include "xreatemanager.h"
+#include "gtest/gtest.h"
+
+using namespace xreate;
+
+TEST(Virtualization, test1){
+ FILE* input = fopen("scripts/virtualization/test1.xreate","r");
+ assert(input != nullptr);
+
+ std::unique_ptr<XreateManager> man(XreateManager::prepare(input));
+
+ int (*main)() = (int (*)())man->run();
+ int result = main();
+
+ ASSERT_EQ(1, result);
+}
\ No newline at end of file
Event Timeline
Log In to Comment