test: add reproducible FreeCAD golden oracle

This commit is contained in:
2026-08-03 03:20:37 -04:00
parent 81fcc69a74
commit 2ce261b982
27 changed files with 678 additions and 12 deletions

View File

@@ -0,0 +1,10 @@
import { execFileSync } from 'node:child_process'
import { resolve } from 'node:path'
const root = resolve(new URL('..', import.meta.url).pathname)
const build = resolve(root, '.cache/freecad/build-native')
const install = resolve(root, '.cache/freecad/install-native')
const jobs = process.env.FREECAD_BUILD_JOBS || '4'
execFileSync('cmake', ['--build', build, '--parallel', jobs], { cwd: root, stdio: 'inherit' })
execFileSync('cmake', ['--install', build], { cwd: root, stdio: 'inherit' })
console.log(`FreeCAD native oracle installed: ${install}`)