Skip to content

freecad@1.x.x_py313_qt6: update formula to run through test suite using the freecadcmd #800

Description

@ipatch

as of right now the formula freecad@1.0.2_py313_qt6.rb has a test suite of system true which will just evaluate to a non error status being run from a cli, but doesn't actually test any of the functionality in freecad unfortunately.

running the test suite using the following command from the formula install gives the below output, on my asahi linux box

./freecadcmd -t 0

output

======================================================================
ERROR: test46 (CAMTests.TestPathOpUtil.TestPathOpUtil.test46)
Check offsetting multiple inside edges.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/capin/homebrew/Cellar/freecad@1.0.2_py313_qt6/1.0.2_4/Mod/CAM/CAMTests/TestPathOpUtil.py", line 795, in test46
    wire = PathOpUtil.offsetWire(Part.Wire(lEdges), obj.Shape, 2, True)
  File "/home/capin/homebrew/Cellar/freecad@1.0.2_py313_qt6/1.0.2_4/Mod/CAM/Path/Op/Util.py", line 348, in offsetWire
    debugWire("outside", Part.Wire(outside))
                         ~~~~~~~~~^^^^^^^^^
Part.OCCError: BRep_API: command not done

======================================================================
ERROR: test47 (CAMTests.TestPathOpUtil.TestPathOpUtil.test47)
Check offsetting multiple backwards inside edges.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/capin/homebrew/Cellar/freecad@1.0.2_py313_qt6/1.0.2_4/Mod/CAM/CAMTests/TestPathOpUtil.py", line 833, in test47
    wire = PathOpUtil.offsetWire(w, obj.Shape, 2, True)
  File "/home/capin/homebrew/Cellar/freecad@1.0.2_py313_qt6/1.0.2_4/Mod/CAM/Path/Op/Util.py", line 348, in offsetWire
    debugWire("outside", Part.Wire(outside))
                         ~~~~~~~~~^^^^^^^^^
Part.OCCError: BRep_API: command not done

----------------------------------------------------------------------
Ran 1438 tests in 76.544s

FAILED (errors=2, skipped=2)
╭─capin ssh m1mac in /opt/code/fcgit/fcsrc (main …3⚑16)
╰─λ gs
On branch main
Your branch is up to date with 'myfork/main'.

Untracked files:
	PartDesignTestTNP_testFileSaveRestore.FCStd
	SketchSolverTest.20260318-145507.FCBak
	SketchSolverTest.FCStd

nothing added to commit but untracked files present

in order to get those failing cam workbench tests to pass i'll have to pull in a .patch file from upstream freecad/freecad PR that was recently merged and update the formula with that .patch file. other than that the test suite "should just pass" 🤞

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions