From 82ac335bdd8dd0379a53ad5e18d26b87f6d1b748 Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Mon, 27 Jan 2025 15:54:23 +0000 Subject: [PATCH] test: search cctest files To prevent a new cctest missing from the `node.gyp`, search cctest files with tool `search_files.py` at configure time. PR-URL: https://github.com/nodejs/node/pull/56791 Refs: https://github.com/nodejs/node/pull/55275 Reviewed-By: Yagiz Nizipli Reviewed-By: Daniel Lemire Reviewed-By: Richard Lau Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- node.gyp | 29 ++++++----------------------- tools/search_files.py | 3 +++ 2 files changed, 9 insertions(+), 23 deletions(-) diff --git a/node.gyp b/node.gyp index 6166f9d577..5aed08ee41 100644 --- a/node.gyp +++ b/node.gyp @@ -402,26 +402,8 @@ ], 'node_cctest_sources': [ 'src/node_snapshot_stub.cc', - 'test/cctest/node_test_fixture.cc', - 'test/cctest/node_test_fixture.h', - 'test/cctest/test_aliased_buffer.cc', - 'test/cctest/test_base64.cc', - 'test/cctest/test_base_object_ptr.cc', - 'test/cctest/test_cppgc.cc', - 'test/cctest/test_node_postmortem_metadata.cc', - 'test/cctest/test_node_task_runner.cc', - 'test/cctest/test_environment.cc', - 'test/cctest/test_linked_binding.cc', - 'test/cctest/test_node_api.cc', - 'test/cctest/test_path.cc', - 'test/cctest/test_per_process.cc', - 'test/cctest/test_platform.cc', - 'test/cctest/test_report.cc', - 'test/cctest/test_json_utils.cc', - 'test/cctest/test_sockaddr.cc', - 'test/cctest/test_traced_value.cc', - 'test/cctest/test_util.cc', - 'test/cctest/test_dataqueue.cc', + '