Skip to content

Commit

Permalink
Fix Windows Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
beachtom committed Oct 13, 2023
1 parent 4f46abe commit 841ea08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tests/regression/regression.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ async function RunRegression()
await ifcAPI.Init();
let files = await GetRegressionFiles();
for (let fileName of files) {
regressionResults[fileName] = await CreateModelResuts(fileName);
regressionResults[fileName] = createHash('sha256').update(JSON.stringify(regressionResults[fileName])).digest('hex');
let properFileName = fileName.replace("\\","/");
regressionResults[properFileName] = await CreateModelResuts(fileName);
regressionResults[properFileName] = createHash('sha256').update(JSON.stringify(regressionResults[properFileName])).digest('hex');

}
if (update) {
Expand All @@ -39,6 +40,7 @@ async function RunRegression()
let passTests = true;
try {
for (let fileName in regressionResults) {
fileName = fileName.replace("\\","/");
if (fileName in regressionResultsCurrent) {
if (regressionResultsCurrent[fileName] == regressionResults[fileName]) console.log(fileName+"- PASS");
else {
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/results.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"tests/ifcfiles/public/AC20-FZK-Haus.ifc":"a84909e1d0b8fd780c09a509f6ac412611813a8813fb347e51bfabb6d220b71a","tests/ifcfiles/public/C20-Institute-Var-2.ifc":"a4b73f2480b61d5bdcfb6dad682b8aa4bace044f50c7017869ab382b8b919763","tests/ifcfiles/public/FM_ARC_DigitalHub.ifc":"974d973b328dcfe5a98034a774df09cf04b2b6e5351624d09bf4af732e9c1fcb","tests/ifcfiles/public/ISSUE_005_haus.ifc":"a84909e1d0b8fd780c09a509f6ac412611813a8813fb347e51bfabb6d220b71a","tests/ifcfiles/public/ISSUE_021_Mini Project.ifc":"5313940b560de971964f6ae9b68d754fb842eaeceb52e40d13b1530e8ce366fc","tests/ifcfiles/public/ISSUE_034_HouseZ.ifc":"a6726e6ec71fce034f9c7af27a5c794474f682ed6ff7b4f2fab6bf82bdac48bd","tests/ifcfiles/public/ISSUE_044_test_IFCCOMPOSITEPROFILEDEF.ifc":"f676935abae431cc9e3db4543f77b7bfae5aa2fb9465f3b27c41e5235fc49852","tests/ifcfiles/public/ISSUE_053_20181220Holter_Tower_10.ifczip":"ea103b53962543393c2ece4fbee4616e26083c2001fff69a37beefab6df1cb5c","tests/ifcfiles/public/ISSUE_068_ARK_NUS_skolebygg.ifc":"8715eb3acb71a576df8e8cb2a94c5a30dd78cdb175d6ea05940be5bcc41d8a68","tests/ifcfiles/public/ISSUE_102_M3D-CON-CD.ifc":"f703cff87541ce627b0d1f8f690101d3e8baeac6cb1d00ad5d3b158e8f34bbec","tests/ifcfiles/public/ISSUE_102_M3D-CON.ifc":"5d1d641db37f427a7e24121920e0bafc50fd5f2991340f9ec1bdaff0bbe5ac15","tests/ifcfiles/public/ISSUE_126_model.ifc":"b1cf38f12d666f5d93c93547e0183c80e4c82e25d9d5dc39b523a78a2903a963","tests/ifcfiles/public/ISSUE_129_N1540_17_EXE_MOD_448200_02_09_11SMC_IGC_V17.ifc":"07dbae4882d43dd199409013d0f8d9acc6a30789bf6fe563673eff7598f2c3bf","tests/ifcfiles/public/ISSUE_159_kleine_Wohnung_R22.ifc":"b687cd33ebb31ed31efc64cbb146f63d50b65f2bb7d9213a7bbe13c14149ddf4","tests/ifcfiles/public/ISSUE_171_IfcSurfaceCurveSweptAreaSolid.ifc":"a08021dda1f17e02b8f203a35763da6db49ece19eaa3006c5e9e308df3a786d5","tests/ifcfiles/public/IfcOpenHouse_IFC4.ifc":"7703c4da136b0c1ddb13fd003aae85e2e1d1e3b46e25bb04da5c1b8f6d35a88b","tests/ifcfiles/public/KIT-Simple-Road-Test-Web-IFC4x3_RC2.ifc":"eebad54e6589dcaee7309eb09ee2054905fc1ba76b4d031faf9498a39583d2cf","tests/ifcfiles/public/Office_A_20110811.ifc":"34addd63124978fb56bcbb799a22b74614651723df3b922cc5f540cbdc713cfe","tests/ifcfiles/public/S_Office_Integrated Design Archi.ifc":"d9f9aad155bb13ded4e42234ee2b56b4e1282972bf54903af3c2ef825438e369","tests/ifcfiles/public/Sample_entities.ifc":"1b7925bf0f4e1f9bbac50c497df5c549d919da0203a2c12f1915ba0674028944","tests/ifcfiles/public/advanced_model.ifc":"c4c6b58dc38551ca975cf73264b4cf1b80cc5dfaf7e727e045d263eb79c9e706","tests/ifcfiles/public/clinic.ifc":"ce84a0ff0fca833132d265faeee5f5b190d05a88bdb674e3fe28691728c5c989","tests/ifcfiles/public/dental_clinic.ifc":"ce84a0ff0fca833132d265faeee5f5b190d05a88bdb674e3fe28691728c5c989","tests/ifcfiles/public/duplex.ifc":"c339844805d5d60ae357ab585f6b7f3df28689b504a8063948c4381548924128","tests/ifcfiles/public/example.ifc":"a1b2e409fe4b6ed389b64a8d5e0748e920dff81d68db9b7ca65bea27213d4be5","tests/ifcfiles/public/ifcbridge-model01.ifc":"842b4d4787821487c981a56ef77a9ebd85e3b169884084e37d57e219c18764ad","tests/ifcfiles/public/schependomlaan.ifc":"9f650b2cbcb53e3da73744925a9fe2722f4877ad901a41269fbc7ffa0aae1b88","tests/ifcfiles/public/tested_sample_project.ifc":"27a266831ed8554cb6374c5ac37f3ea604c484e4bc5de6602c40d2c3a238712d","tests/ifcfiles/private/ISSUE_005_haus.ifc":"a84909e1d0b8fd780c09a509f6ac412611813a8813fb347e51bfabb6d220b71a","tests/ifcfiles/private/ISSUE_021_Mini Project.ifc":"5313940b560de971964f6ae9b68d754fb842eaeceb52e40d13b1530e8ce366fc","tests/ifcfiles/private/ISSUE_034_HouseZ.ifc":"a6726e6ec71fce034f9c7af27a5c794474f682ed6ff7b4f2fab6bf82bdac48bd","tests/ifcfiles/private/ISSUE_044_test_IFCCOMPOSITEPROFILEDEF.ifc":"f676935abae431cc9e3db4543f77b7bfae5aa2fb9465f3b27c41e5235fc49852","tests/ifcfiles/private/ISSUE_068_ARK_NUS_skolebygg.ifc":"8715eb3acb71a576df8e8cb2a94c5a30dd78cdb175d6ea05940be5bcc41d8a68","tests/ifcfiles/private/ISSUE_102_M3D-CON-CD.ifc":"f703cff87541ce627b0d1f8f690101d3e8baeac6cb1d00ad5d3b158e8f34bbec","tests/ifcfiles/private/ISSUE_102_M3D-CON.ifc":"5d1d641db37f427a7e24121920e0bafc50fd5f2991340f9ec1bdaff0bbe5ac15","tests/ifcfiles/private/ISSUE_126_model.ifc":"b1cf38f12d666f5d93c93547e0183c80e4c82e25d9d5dc39b523a78a2903a963","tests/ifcfiles/private/ISSUE_129_N1540_17_EXE_MOD_448200_02_09_11SMC_IGC_V17.ifc":"07dbae4882d43dd199409013d0f8d9acc6a30789bf6fe563673eff7598f2c3bf","tests/ifcfiles/private/ISSUE_159_kleine_Wohnung_R22.ifc":"b687cd33ebb31ed31efc64cbb146f63d50b65f2bb7d9213a7bbe13c14149ddf4","tests/ifcfiles/private/ISSUE_171_IfcSurfaceCurveSweptAreaSolid.ifc":"a08021dda1f17e02b8f203a35763da6db49ece19eaa3006c5e9e308df3a786d5","tests/ifcfiles/private/large.ifc":"369cbfb2447a2285b534eb7c14b9759ebd577fb2d8145db3278bfd9f98b2b1bb"}
{"tests/ifcfiles/public/AC20-FZK-Haus.ifc":"a84909e1d0b8fd780c09a509f6ac412611813a8813fb347e51bfabb6d220b71a","tests/ifcfiles/public/C20-Institute-Var-2.ifc":"a4b73f2480b61d5bdcfb6dad682b8aa4bace044f50c7017869ab382b8b919763","tests/ifcfiles/public/FM_ARC_DigitalHub.ifc":"974d973b328dcfe5a98034a774df09cf04b2b6e5351624d09bf4af732e9c1fcb","tests/ifcfiles/public/ISSUE_005_haus.ifc":"a84909e1d0b8fd780c09a509f6ac412611813a8813fb347e51bfabb6d220b71a","tests/ifcfiles/public/ISSUE_021_Mini Project.ifc":"5313940b560de971964f6ae9b68d754fb842eaeceb52e40d13b1530e8ce366fc","tests/ifcfiles/public/ISSUE_034_HouseZ.ifc":"a6726e6ec71fce034f9c7af27a5c794474f682ed6ff7b4f2fab6bf82bdac48bd","tests/ifcfiles/public/ISSUE_044_test_IFCCOMPOSITEPROFILEDEF.ifc":"f676935abae431cc9e3db4543f77b7bfae5aa2fb9465f3b27c41e5235fc49852","tests/ifcfiles/public/ISSUE_053_20181220Holter_Tower_10.ifczip":"ea103b53962543393c2ece4fbee4616e26083c2001fff69a37beefab6df1cb5c","tests/ifcfiles/public/ISSUE_068_ARK_NUS_skolebygg.ifc":"8715eb3acb71a576df8e8cb2a94c5a30dd78cdb175d6ea05940be5bcc41d8a68","tests/ifcfiles/public/ISSUE_102_M3D-CON-CD.ifc":"f703cff87541ce627b0d1f8f690101d3e8baeac6cb1d00ad5d3b158e8f34bbec","tests/ifcfiles/public/ISSUE_102_M3D-CON.ifc":"5d1d641db37f427a7e24121920e0bafc50fd5f2991340f9ec1bdaff0bbe5ac15","tests/ifcfiles/public/ISSUE_126_model.ifc":"b1cf38f12d666f5d93c93547e0183c80e4c82e25d9d5dc39b523a78a2903a963","tests/ifcfiles/public/ISSUE_129_N1540_17_EXE_MOD_448200_02_09_11SMC_IGC_V17.ifc":"07dbae4882d43dd199409013d0f8d9acc6a30789bf6fe563673eff7598f2c3bf","tests/ifcfiles/public/ISSUE_159_kleine_Wohnung_R22.ifc":"b687cd33ebb31ed31efc64cbb146f63d50b65f2bb7d9213a7bbe13c14149ddf4","tests/ifcfiles/public/ISSUE_171_IfcSurfaceCurveSweptAreaSolid.ifc":"a08021dda1f17e02b8f203a35763da6db49ece19eaa3006c5e9e308df3a786d5","tests/ifcfiles/public/IfcOpenHouse_IFC4.ifc":"7703c4da136b0c1ddb13fd003aae85e2e1d1e3b46e25bb04da5c1b8f6d35a88b","tests/ifcfiles/public/KIT-Simple-Road-Test-Web-IFC4x3_RC2.ifc":"eebad54e6589dcaee7309eb09ee2054905fc1ba76b4d031faf9498a39583d2cf","tests/ifcfiles/public/Office_A_20110811.ifc":"34addd63124978fb56bcbb799a22b74614651723df3b922cc5f540cbdc713cfe","tests/ifcfiles/public/S_Office_Integrated Design Archi.ifc":"d9f9aad155bb13ded4e42234ee2b56b4e1282972bf54903af3c2ef825438e369","tests/ifcfiles/public/Sample_entities.ifc":"1b7925bf0f4e1f9bbac50c497df5c549d919da0203a2c12f1915ba0674028944","tests/ifcfiles/public/advanced_model.ifc":"c4c6b58dc38551ca975cf73264b4cf1b80cc5dfaf7e727e045d263eb79c9e706","tests/ifcfiles/public/clinic.ifc":"ce84a0ff0fca833132d265faeee5f5b190d05a88bdb674e3fe28691728c5c989","tests/ifcfiles/public/dental_clinic.ifc":"ce84a0ff0fca833132d265faeee5f5b190d05a88bdb674e3fe28691728c5c989","tests/ifcfiles/public/duplex.ifc":"c339844805d5d60ae357ab585f6b7f3df28689b504a8063948c4381548924128","tests/ifcfiles/public/example.ifc":"a1b2e409fe4b6ed389b64a8d5e0748e920dff81d68db9b7ca65bea27213d4be5","tests/ifcfiles/public/ifcbridge-model01.ifc":"842b4d4787821487c981a56ef77a9ebd85e3b169884084e37d57e219c18764ad","tests/ifcfiles/public/schependomlaan.ifc":"9f650b2cbcb53e3da73744925a9fe2722f4877ad901a41269fbc7ffa0aae1b88","tests/ifcfiles/public/tested_sample_project.ifc":"27a266831ed8554cb6374c5ac37f3ea604c484e4bc5de6602c40d2c3a238712d","tests/ifcfiles/private/large.ifc":"369cbfb2447a2285b534eb7c14b9759ebd577fb2d8145db3278bfd9f98b2b1bb"}

0 comments on commit 841ea08

Please sign in to comment.