feat: establish reproducible FreeCAD web compatibility baseline
This commit is contained in:
@@ -6,10 +6,11 @@ import { loadGoldenManifest, compareGoldenResult } from './freecad-golden-contra
|
||||
const root = resolve(dirname(fileURLToPath(import.meta.url)), '..')
|
||||
const args = new Set(process.argv.slice(2))
|
||||
const scenarioArgument = process.argv.slice(2).find((argument) => argument.startsWith('--scenario='))
|
||||
const manifestArgument = process.argv.slice(2).find((argument) => argument.startsWith('--manifest='))
|
||||
const requestedScenario = scenarioArgument?.slice('--scenario='.length)
|
||||
const jsonOutput = args.has('--json')
|
||||
const allowMissing = args.has('--allow-missing')
|
||||
const manifest = await loadGoldenManifest(resolve(root, 'fixtures/freecad-golden/manifest.json'))
|
||||
const manifest = await loadGoldenManifest(resolve(root, manifestArgument?.slice('--manifest='.length) || 'fixtures/freecad-golden/manifest.json'))
|
||||
const driver = resolve(root, manifest.driver)
|
||||
|
||||
const localOracle = resolve(root, '.cache/freecad/install-native/bin/FreeCADCmd')
|
||||
|
||||
Reference in New Issue
Block a user