/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v26.2.0
test/embedding/test-shared-embedding-v8.js
25 строк
686 B
Joyee Cheung
build,test: add tests for binary linked with shared libnode
28 янв 2026, 18:02
Не верифицирован
28 янв 2026, 18:02
983fd3f
Код
Авторство
О чём код?
'use strict'; // This tests the V8 parts in the shared library work correctly. // TODO(joyeecheung): also test that the Node.js parts work correctly, // which can be done in embedtest just built in shared library mode. const common = require('../common'); if (!common.usesSharedLibrary) { common.skip('Only tests builds linking against Node.js shared library'); } const { spawnSyncAndAssert } = require('../common/child_process'); const fs = require('fs'); const binary = common.resolveBuiltBinary('shared_embedtest'); if (!fs.existsSync(binary)) { common.skip('shared_embedtest binary not built'); } spawnSyncAndAssert(binary, { trim: true, stdout: 'Hello, World!', });