summaryrefslogtreecommitdiffhomepage
path: root/test/test_01_codegen/codegen.test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_01_codegen/codegen.test.cc')
-rw-r--r--test/test_01_codegen/codegen.test.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/test_01_codegen/codegen.test.cc b/test/test_01_codegen/codegen.test.cc
new file mode 100644
index 0000000..06c8e25
--- /dev/null
+++ b/test/test_01_codegen/codegen.test.cc
@@ -0,0 +1,15 @@
+/* ========================================
+
+ Copyright (C) 2024-2025 Amlal El Mahrouss, licensed under the Apache 2.0 license.
+
+ ======================================== */
+
+/// @brief Codegen Unit test, from the C++ unit to the final executable.
+/// @author Amlal El Mahrouss
+
+#include <gtest/gtest.h>
+
+TEST(CodegenTest, BasicCodegenTest) {
+ auto expr = std::system("asm -asm-x64 test_samples/sample.asm");
+ EXPECT_TRUE(expr == 0) << "ASM Driver did not compile the easy ASM unit.";
+}