summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-23 00:42:27 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-23 00:42:27 +0100
commit1b90b46dd64b1441258a3bccbb4c85749144dab3 (patch)
tree6bf00cbde6918bb0af22ba6df1dbc4d53aaf742b /test
parent9ee6ece95bc126cb48bb1ede0d37ccbbefc0295d (diff)
feat: compiler: use `.nc` extension for Nectar sources--and `.nhh` for
nectar modules. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'test')
-rw-r--r--test/test_01_codegen/codegen.test.cc8
-rw-r--r--test/test_samples/test_ostream.nc (renamed from test/test_samples/test_ostream.ncpp)0
-rw-r--r--test/test_samples/test_printf.nc (renamed from test/test_samples/test_printf.ncpp)0
-rw-r--r--test/test_samples/test_struct.nc (renamed from test/test_samples/test_struct.ncpp)0
4 files changed, 4 insertions, 4 deletions
diff --git a/test/test_01_codegen/codegen.test.cc b/test/test_01_codegen/codegen.test.cc
index 9868c6f..b3428a8 100644
--- a/test/test_01_codegen/codegen.test.cc
+++ b/test/test_01_codegen/codegen.test.cc
@@ -11,19 +11,19 @@
TEST(CodegenTest, BasicCodegenTestGrep) {
// Compile C++ source to assembly
auto compile_result =
- std::system("pef-amd64-cxxdrv ../test_samples/sample.ncpp > /dev/null 2>&1");
+ std::system("pef-amd64-cxxdrv ../test_samples/sample.nc > /dev/null 2>&1");
EXPECT_TRUE(compile_result == 0) << "C++ compiler driver failed to compile sample.cc";
// Grep for expected entry point symbol in generated assembly
- auto grep_main = std::system("grep -q '__NECTAR_main' ../test_samples/sample.ncpp.masm");
+ auto grep_main = std::system("grep -q '__NECTAR_main' ../test_samples/sample.nc.masm");
EXPECT_TRUE(grep_main == 0) << "Generated assembly missing expected entry point __NECTAR_main";
// Grep for return instruction
- auto grep_ret = std::system("grep -q 'ret' ../test_samples/sample.ncpp.masm");
+ auto grep_ret = std::system("grep -q 'ret' ../test_samples/sample.nc.masm");
EXPECT_TRUE(grep_ret == 0) << "Generated assembly missing return instruction";
// Grep for 64-bit mode directive
- auto grep_bits64 = std::system("grep -q '%bits 64' ../test_samples/sample.ncpp.masm");
+ auto grep_bits64 = std::system("grep -q '%bits 64' ../test_samples/sample.nc.masm");
EXPECT_TRUE(grep_bits64 == 0) << "Generated assembly missing 64-bit mode directive";
}
diff --git a/test/test_samples/test_ostream.ncpp b/test/test_samples/test_ostream.nc
index 0d0410b..0d0410b 100644
--- a/test/test_samples/test_ostream.ncpp
+++ b/test/test_samples/test_ostream.nc
diff --git a/test/test_samples/test_printf.ncpp b/test/test_samples/test_printf.nc
index d18c818..d18c818 100644
--- a/test/test_samples/test_printf.ncpp
+++ b/test/test_samples/test_printf.nc
diff --git a/test/test_samples/test_struct.ncpp b/test/test_samples/test_struct.nc
index c725b64..c725b64 100644
--- a/test/test_samples/test_struct.ncpp
+++ b/test/test_samples/test_struct.nc