summaryrefslogtreecommitdiffhomepage
path: root/tests/test_02_linker/linker_test.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-12 02:34:07 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-12 02:37:30 +0100
commitfacb3edec9fd275d5a8fcabaa87f768087255768 (patch)
tree587c1fdd1e4b09a3c0f5243af46f7d09ac3722fd /tests/test_02_linker/linker_test.cc
parent37b8e34dc54f572fbfbd135742fa11c21c5e67c1 (diff)
chore! breaking API changes, rename project to Nectar, instead of NeCTI.v0.0.9
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'tests/test_02_linker/linker_test.cc')
-rw-r--r--tests/test_02_linker/linker_test.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_02_linker/linker_test.cc b/tests/test_02_linker/linker_test.cc
index 3c18fe0..617327f 100644
--- a/tests/test_02_linker/linker_test.cc
+++ b/tests/test_02_linker/linker_test.cc
@@ -1,6 +1,6 @@
/* ========================================
- Copyright (C) 2024-2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license
+ Copyright (C) 2024-2025 Amlal El Mahrouss, licensed under the Apache 2.0 license.
======================================== */
@@ -9,21 +9,21 @@
#include <gtest/gtest.h>
-/// c++
-TEST(LinkerTest, BasicLinkTest) {
+/// compile
+TEST(LinkerTest, BasicLinkTestCompile) {
auto expr = std::system("pef-amd64-cxxdrv test_samples/sample.cc");
EXPECT_TRUE(expr == 0) << "C++ Driver did not compile the easy C++ unit.";
}
/// assemble
-TEST(LinkerTest, BasicLinkTest2) {
+TEST(LinkerTest, BasicLinkTestAssemble) {
auto expr = std::system("asm -asm:x64 test_samples/sample.cc.pp.masm");
EXPECT_TRUE(expr == 0) << "Assembler did not assemble the easy asm unit.";
}
/// link
-TEST(LinkerTest, BasicLinkTest3) {
+TEST(LinkerTest, BasicLinkTestLink) {
auto expr = std::system(
- "ld64 -amd64 test_samples/sample.cc.pp.obj -start __NECTI_main -output main.exec");
+ "ld64 -amd64 test_samples/sample.cc.pp.obj -start __NECTAR_main -output main.exec");
EXPECT_TRUE(expr == 0) << "Linker did not link the easy object.";
}