test: skip `test-sqlite-extensions` when SQLite is not built by us

PR-URL: https://github.com/nodejs/node/pull/56341
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
pull/56353/head
Antoine du Hamel 2024-12-24 20:19:12 +01:00 committed by GitHub
parent da3f388c14
commit 49acdc8748
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,10 @@ import test from 'node:test';
import fs from 'node:fs';
import childProcess from 'child_process';
if (process.config.variables.node_shared_sqlite) {
common.skip('Missing libsqlite_extension binary');
}
// Lib extension binary is named differently on different platforms
function resolveBuiltBinary(binary) {
const targetFile = fs.readdirSync(path.dirname(process.execPath)).find((file) => file.startsWith(binary));