summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
author0x221E <0x221E@0xinfinity.dev>2026-04-12 16:59:40 +0200
committer0x221E <0x221E@0xinfinity.dev>2026-04-12 16:59:40 +0200
commita66c7433c2c11b8b6c99142277ed4e16b1a2a465 (patch)
treee54bcfb59c303acf6118fd11f06d5c0bd5f24e5d /tests
initial commitHEADmaster
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt10
-rw-r--r--tests/test.cpp21
2 files changed, 31 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
new file mode 100644
index 0000000..104ed2c
--- /dev/null
+++ b/tests/CMakeLists.txt
@@ -0,0 +1,10 @@
+enable_testing()
+
+add_executable(test test.cpp)
+
+target_link_libraries(test
+ GTest::gtest_main
+ )
+
+include(GoogleTest)
+gtest_discover_tests(test)
diff --git a/tests/test.cpp b/tests/test.cpp
new file mode 100644
index 0000000..54efda0
--- /dev/null
+++ b/tests/test.cpp
@@ -0,0 +1,21 @@
+#include <gtest/gtest.h>
+
+//#include "../src/Userspace.cpp"
+
+// uint8_t test[] = {
+// 0xB8, 0x10,
+// 0xB9, 0x10,
+// 0x01, 0xC0,
+// };
+
+// Userspace user;
+
+TEST(ModRM_C0, ModRM) {
+ // auto a = user.GetCPUStatus();
+
+ // user.Upload2Memory(test, 6);
+ // user.Run();
+
+ //EXPECT_EQ(a.m_Registers[0], 0x20);
+ EXPECT_EQ(1, 1);
+}