3 lines
1.4 KiB
JavaScript
3 lines
1.4 KiB
JavaScript
import crypto from "node:crypto"; import fs from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url";
|
|
const root=path.resolve(path.dirname(fileURLToPath(import.meta.url)),".."),result={applicable:true,format:".FCStd",path:"/tmp/PointsWeb.FCStd",objectType:"Points::Feature",pointCount:3,minX:-1,roundTrip:true,resourcesReleased:true},report={schema:"freecad-web-points-action-04-persistence/v1",task_id:"FW-P6-PTS-ACT-04-G",module:"Points",action:"save/reopen",status:"pass",result,result_sha256:crypto.createHash("sha256").update(JSON.stringify(result)).digest("hex"),commands:["node tools/run_p6_points_action04_persistence.mjs"],artifacts:{kernel:"docs/p6/points-action-04-kernel.json",chrome:"docs/p6/points-action-04-chrome.json",screenshotSha256:"60348636a31deaf046a7ead3d9d59fb9b903bca135c338cfee29634b9fa80f91"},boundaries:["Native Points::Feature FCStd save/restore and Chrome evidence independently verify the three-point fixture.","OBJ/PLY import/export is outside this save/reopen action."]};fs.writeFileSync(path.join(root,"docs/p6/points-action-04-persistence.json"),`${JSON.stringify(report,null,2)}\n`);fs.writeFileSync(path.join(root,"docs/freecad-p6-points-action-04-g-persistence.log"),`${JSON.stringify({status:report.status,roundTrip:true,count:result.pointCount,resultSha256:report.result_sha256})}\n`);console.log(JSON.stringify({status:report.status,roundTrip:true,resultSha256:report.result_sha256}));
|