feat: add offline Qt6 naming prerequisites and boundary gates
This commit is contained in:
16
native/freecad-naming-probe/smoke-test.mjs
Normal file
16
native/freecad-naming-probe/smoke-test.mjs
Normal file
@@ -0,0 +1,16 @@
|
||||
import createProbe from './dist/freecad-private-naming-source-probe.js'
|
||||
|
||||
const probe = await createProbe()
|
||||
const result = probe.freecadPrivateNamingSourceProbe()
|
||||
if (result !== 'Edge12;:M;CUT;:H2a:7,E') throw new Error(`Unexpected FreeCAD private naming source probe result: ${result}`)
|
||||
for (const forbidden of ['freecadNamingAbiVersion', 'freecadNamingCapabilitiesJson', 'freecadNamingEvidenceJson']) {
|
||||
if (typeof probe[forbidden] === 'function') throw new Error(`Source prerequisite probe must not export production ABI callback ${forbidden}.`)
|
||||
}
|
||||
console.log(JSON.stringify({
|
||||
status: 'source-prerequisite-pass',
|
||||
freecadVersion: '1.1.1',
|
||||
sourceCommit: '0108fd4b4850cc46e625b60e53cea7a7bbe69f8d',
|
||||
linkedSources: ['App/IndexedName.cpp', 'App/MappedName.cpp'],
|
||||
result,
|
||||
productionWorkerLinked: false,
|
||||
}, null, 2))
|
||||
Reference in New Issue
Block a user